File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,5 @@ server {
4343 proxy_pass http ://unix:/home/ifrc/django_app.sock;
4444 }
4545}
46+
47+ # This environment is CHANGE_ME_BEFORE_START.
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ if [ "$API_FQDN"x = goadmin.ifrc.orgx ]; then
1414else
1515 sed -i ' s/\$NGINX_SERVER_NAME/' $API_FQDN ' /g' /etc/nginx/sites-available/nginx.conf
1616fi
17+ # Just a temporary test:
18+ if [ " $GO_ENVIRONMENT " x = productionx ]; then
19+ sed -i ' s/CHANGE_ME_BEFORE_START/prod/' /etc/nginx/sites-available/nginx.conf
20+ else
21+ sed -i ' s/CHANGE_ME_BEFORE_START/' $GO_ENVIRONMENT ' /' /etc/nginx/sites-available/nginx.conf
22+ fi
1723
1824# Prepare log files and start outputting logs to stdout
1925touch $HOME /logs/gunicorn.log
You can’t perform that action at this time.
0 commit comments