Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plesk - Environment variables #555

Open
TheRealDK1337 opened this issue Jul 21, 2022 · 2 comments
Open

Plesk - Environment variables #555

TheRealDK1337 opened this issue Jul 21, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@TheRealDK1337
Copy link

I would love to use the Docker version on my Plesk server. Every time i start the container i get the following error:

python: can't open file 'run.py': [Errno 2] No such file or directory

I already tried mounting all required folders and files to the container, but it won´t work.

Could you add some env variables for setting the folder and file paths?
Or give me a hint how i could use the container on plesk?

Thank you for your help.

@TheRealDK1337 TheRealDK1337 added the enhancement New feature or request label Jul 21, 2022
@draxxy9
Copy link

draxxy9 commented Jul 22, 2022

If you're using docker-compose, the file structure should appear as below:

Twitch-Channel-Points-Miner-v2-master/
├── analytics
├── cookies
├── docker-compose.yml
├── Dockerfile
├── LICENSE
├── logs
├── README.md
├── requirements.txt
├── run.py
├── setup.py
└── TwitchChannelPointsMiner

If you've cloned the git repository, most likely you don't have a "run.py", but an "example.py". In that case, please follow the instructions available here: https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#how-to-use

Alternatively, if you've set it up the way I've described above and it still isn't working, your Plesk configuration (in lieu of the compose file) should be something like this:

version: '3.9'
services:
    twitch-miner:
        container_name: twitch-miner
        image: tkdalex/twitch-channel-points-miner-v2
        tty: true
        ports:
            - 5000:5000
        volumes:
            - ./analytics:/usr/src/app/analytics
            - ./cookies:/usr/src/app/cookies
            - ./logs:/usr/src/app/logs
            - ./run.py:/usr/src/app/run.py:ro
        environment:
            - TERM=xterm-256color
        restart: unless-stopped
@Tkd-Alex
Copy link
Owner

Probably you forgot to mount volume linked to the run.py file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
3 participants