Skip to content

Commit 464d3a6

Browse files
committed
Date of orientation to PER process status + an nginx fix
1 parent ce8da47 commit 464d3a6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main/runserver.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ python manage.py collectstatic --noinput -l
1010

1111
# Add server name(s) to django settings and nginx - later maybe only nginx would be enough, and ALLOWED_HOSTS could be "*"
1212
NGINX_API_FQDN=$(echo $API_FQDN | sed 's|https://||')
13+
sed -i 's!\$NGINX_SERVER_NAME!'$NGINX_API_FQDN'!g' /etc/nginx/sites-available/nginx.conf
1314
if [ "$GO_ENVIRONMENT"x = productionx ]; then
14-
sed -i 's/\$NGINX_SERVER_NAME/'$NGINX_API_FQDN' api.go.ifrc.org/g' /etc/nginx/sites-available/nginx.conf
1515
sed -i 's/CHANGE_ME_BEFORE_START/prod/' /etc/nginx/sites-available/nginx.conf
1616
else
17-
sed -i 's/\$NGINX_SERVER_NAME/'$NGINX_API_FQDN'/g' /etc/nginx/sites-available/nginx.conf
1817
sed -i 's/CHANGE_ME_BEFORE_START/'$GO_ENVIRONMENT'/' /etc/nginx/sites-available/nginx.conf
1918
fi
2019

per/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ class Meta:
608608
fields = (
609609
"id",
610610
"assessment_number",
611+
"date_of_orientation",
611612
"date_of_assessment",
612613
"country",
613614
"country_details",
@@ -658,6 +659,7 @@ class Meta:
658659
fields = (
659660
"id",
660661
"assessment_number",
662+
"date_of_orientation",
661663
"date_of_assessment",
662664
"country",
663665
"country_details",

0 commit comments

Comments
 (0)