Initial commit
This commit is contained in:
1
start.sh
Normal file
1
start.sh
Normal file
@@ -0,0 +1 @@
|
||||
sudo docker rm -f portfolio_django && sed -i 's|CMD \["uvicorn".*|CMD ["gunicorn", "portfolio.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]|' Dockerfile && grep -q gunicorn requirements.txt || echo -e "gunicorn>=21.0\nwhitenoise>=6.0" >> requirements.txt && sudo docker build --no-cache -t portfolio-alexandre . && sudo docker run -d --name portfolio_django -p 8006:8000 --restart always portfolio-alexandre
|
||||
Reference in New Issue
Block a user