This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-nginx
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Pongo setuid a nginx
main
Celestino Rey
10 months ago
parent
08dead1ccd
commit
11b1ed9dee
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
Dockerfile
+1
-1
src/config/entrypoint.sh
+ 1
- 0
Dockerfile
View File
@ -27,6 +27,7 @@ RUN python -m venv /opt/venv && \
# make our entrypoint.sh executable
RUN
chmod +x config/entrypoint.sh
RUN
chmod u+s /usr/sbin/nginx
# execute our entrypoint.sh file
CMD
[
"./config/entrypoint.sh"
]
+ 1
- 1
src/config/entrypoint.sh
View File
@ -4,4 +4,4 @@ RUN_PORT="8000"
/opt/venv/bin/python manage.py migrate --no-input
/opt/venv/bin/gunicorn cfehome.wsgi:application --bind
"
0.0.0.0:
${
RUN_PORT
}
"
--daemon
nginx -g
'daemon off;'
sudo
nginx -g
'daemon off;'
Write
Preview
Loading…
Cancel
Save