File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
apache-libcloud == 2.4.0
2
2
applicationinsights == 0.11.7
3
+ colour == 0.1.5
4
+ chardet == 3.0.4
3
5
coverage == 4.5.3
4
6
dj-database-url == 0.5.0
5
- Django == 2.1.7
7
+ Django == 2.1.11
6
8
django-cloud-browser == 0.5.0
7
9
django-filter == 2.0.0
8
10
django-heroku == 0.3.1
@@ -11,7 +13,7 @@ django-widget-tweaks==1.4.2
11
13
django-polymorphic == 2.0.3
12
14
django-pyodbc-azure == 2.1.0.0
13
15
django-rest-polymorphic == 0.1.8
14
- djangorestframework == 3.8.2
16
+ djangorestframework == 3.10
15
17
djangorestframework-csv == 2.1.0
16
18
djangorestframework-filters == 0.10.2
17
19
environs == 4.1.0
@@ -24,6 +26,8 @@ lockfile==0.12.2
24
26
mixer == 6.1.3
25
27
model-mommy == 1.6.0
26
28
psycopg2-binary == 2.7.7
29
+ pyexcel == 0.5.14
30
+ pyexcel-xlsx == 0.5.7
27
31
python-dateutil == 2.7.3
28
32
pytz == 2018.4
29
33
requests == 2.21.0
Original file line number Diff line number Diff line change 2
2
3
3
set -o errexit
4
4
5
+ if [[ ! -d " staticfiles" ]]; then
6
+ echo " Making staticfiles"
7
+ python manage.py collectstatic --noinput;
8
+ fi
9
+
5
10
echo " Initializing database"
6
11
python manage.py wait_for_db
7
12
python manage.py migrate
8
- # python manage.py create_roles
13
+ python manage.py create_roles
9
14
10
15
if [[ -n " ${ADMIN_USERNAME} " ]] && [[ -n " ${ADMIN_PASSWORD} " ]] && [[ -n " ${ADMIN_EMAIL} " ]]; then
11
16
python manage.py create_admin \
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ services:
6
6
command : ["/app/tools/run.sh", "0.0.0.0:8000"]
7
7
volumes :
8
8
- ./app/:/app/
9
+ - static_volume:/app/staticfiles
9
10
environment :
10
11
ADMIN_USERNAME : " admin"
11
12
ADMIN_PASSWORD : " password"
@@ -26,8 +27,8 @@ services:
26
27
nginx :
27
28
build : ./nginx
28
29
volumes :
29
- - static_volume:/home/app/web/staticfiles
30
30
- www:/var/www/html:ro
31
+ - static_volume:/static
31
32
ports :
32
33
- 80:80
33
34
depends_on :
Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ server {
13
13
proxy_set_header Host $host ;
14
14
proxy_redirect off ;
15
15
}
16
+
17
+ location /admin/ {
18
+ proxy_pass http://backend:8000/admin/;
19
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
20
+ proxy_set_header Host $host ;
21
+ proxy_redirect off ;
22
+ }
23
+
24
+ location /static/ {
25
+ autoindex on ;
26
+ alias /static/;
27
+ }
16
28
}
17
29
18
30
server_tokens off ;
You can’t perform that action at this time.
0 commit comments