Closed snobear closed 6 years ago
Two changes I made to get pinry up:
chdir = %(base)/pinry
to /etc/uwsgi/apps-enabled/pinry.ini
. This fixed the ImportError: No module named wsgi
error in /srv/www/pinry/logs/uwsgi.log
.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings")
to
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings.production")
in both /srv/www/pinry/manage.py
and /srv/www/pinry/pinry/wsgi.py
. Then restarted uwsgi in the container with: supervisorctl restart uwsgi
. Also set SECRET_KEY to a random string in /srv/www/pinry/pinry/settings/production.py
if its not already in there. Can't remember if I added that or not.
Just testing out pinry for now but if I end up using it longer term I'll see about a cleaner fix instead of hardcoding the environment like that and submit a PR.
@snobear are these files accessed inside the container? I don't see them in docker-pinry files. I'm trying to get this running too.
Yes, I edited those files directly in the container.
I'm running an nginx proxy on top, so the app is started like so:
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
docker run -e VIRTUAL_HOST="side-gig.com" -d=true -p=10000:80 -v=/mnt/pinry:/data pinry/pinry /start
Then you can enter the pinry container with
docker exec -it <pinrycontainerid> bash
This might be fixed now form @tsmsogn but I haven't tested it, if anyone wants to confirm that'd be awesome!
Similar to #5, I'm getting an internal server error in my browser when launching pinry via docker, fresh install.
docker logs
show:All commands were run per the README. ,I'm not seeing much else when entering the container and looking at
/var/log
. Any ideas?