rmountjoy92 / DashMachine

Another web application bookmark dashboard, with fun features.
GNU General Public License v3.0
1.24k stars 121 forks source link

CONTEXT_PATH Subfolder Error #39

Closed vhenata closed 4 years ago

vhenata commented 4 years ago

I am unable to get the page to load when trying to use a subfolder. Works perfectly fine without it.

This is my compose configuration

dashmachine:
        volumes:
            - ./dashmachine/user_data:/dashmachine/dashmachine/user_data
        environment:
            CONTEXT_PATH: /dash
        ports:
            - 5001:5000
        restart: unless-stopped
        image: rmountjoy/dashmachine:latest

I have attached the error output when I try to browse to the page with this config. Is there anything I'm doing wrong?

subfolder_error_log.txt

di-dc commented 4 years ago

Not sure if they matter (can't test right now) but for reference my docker-compose has two small differences from yours -- a dash before "CONTEXT_PATH", and no space after the equal sign:

  dashmachine:
    container_name: dashmachine
    image: rmountjoy/dashmachine:latest
    restart: unless-stopped
    environment:
      - CONTEXT_PATH=/dash
    volumes:
      - path\to\dashmachine\config\folder:/dashmachine/dashmachine/user_data
    ports:
      - 5000:5000
vhenata commented 4 years ago

Thanks for the reply. I changed my compose to the following

    dashmachine:
        volumes:
            - ./dashmachine/user_data:/dashmachine/dashmachine/user_data
        environment:
            - CONTEXT_PATH=/dash
        ports:
            - 5001:5000
        restart: unless-stopped
        image: rmountjoy/dashmachine:latest   

Still behaves the same

vhenata commented 4 years ago

Updated to 0.41 and it works now