Skip to content

Commit

Permalink
final deployment adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrSheldon committed Sep 19, 2024
1 parent 18025a0 commit 45f99f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions application/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ echo "en_US.UTF-8 UTF-8" | tee -a /etc/locale.gen && locale-gen

# Tools
apt-get -qq install -y python3 python3-dev
# For MariaDB
apt-get -qq install -y mariadb-client
#
mkdir -p /tira/application/src
chown -R tira:tira /tira

# Allow binding port 80
apt-get -qq install libcap2-bin
setcap CAP_NET_BIND_SERVICE=+eip /home/tira/.local/bin/uwsgi
EOF


Expand All @@ -106,9 +112,6 @@ useradd -ms /bin/bash tira
# Change tira's password to tira
echo 'tira:tira' | chpasswd
usermod -aG sudo tira

# apt-get -qq install libmariadb-dev #############
apt-get -qq install mariadb-client #############
EOF

########################################################################################################################
Expand Down
2 changes: 1 addition & 1 deletion application/config/tira-application-config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---task/celebrity-profiling/user/hodge20a
debug: !ENV ${TIRA_DEBUG:false}
allowed_hosts:
- "127.0.0.1"
- "*"
django_secret: "not-so-secret"
# ---
tira_root: !ENV ${TIRA_ROOT:/tira}
Expand Down

0 comments on commit 45f99f3

Please sign in to comment.