Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/.template.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SECRET_KEY=SECRET_KEY

COMPOSE_PROJECT_NAME=geosight
NGINX_TAG=0.0.1
DJANGO_TAG=3.1.0
DJANGO_TAG=3.2.0

# Environments
DJANGO_SETTINGS_MODULE=core.settings.prod
Expand Down
7 changes: 7 additions & 0 deletions deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ CMD ["chromedriver", "--version"]

ADD django_project /home/web/django_project

# Run NPM
WORKDIR /home/web/django_project/frontend
RUN echo "npm install"
RUN npm install --verbose
RUN echo "npm build"
RUN npm run build

# Open port 8080 as we will be running our uwsgi socket on that
EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion django_project/_commit_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aca0a07e7633f7bca7c43bb6723fcb0c8f38e697
70dc455b261a4e362cb50d85c6394e0e393f9f4e
2 changes: 1 addition & 1 deletion django_project/_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.2.0
7 changes: 0 additions & 7 deletions django_project/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ echo "-----------------------------------------------------"
echo "STARTING DJANGO ENTRYPOINT $(date)"
echo "-----------------------------------------------------"

# Run NPM
cd /home/web/django_project/frontend
echo "npm install"
npm install --verbose
echo "npm build"
npm run build

# Run initialization
cd /home/web/django_project
echo 'Running initialize.py...'
Expand Down
Loading