Skip to content

Commit

Permalink
Merge pull request #189 from WikiMovimentoBrasil/2025-02-deployment-f…
Browse files Browse the repository at this point in the history
…ixes

Last-minute deployment fixes
  • Loading branch information
Carybe authored Feb 22, 2025
2 parents 9d74c7f + 7f6d54c commit 8965ff0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
30 changes: 15 additions & 15 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

set -eu

# cd ~/www/python || exit
cd ~/www/python || exit

# echo "==> Updating git repository..."
# git pull
echo "==> Updating git repository..."
git pull

# echo "==> Entering python shell..."
# toolforge webservice --backend=kubernetes python3.11 shell -- \
# webservice-python-bootstrap && \
# source venv/bin/activate && \
# echo "==> Installing dependencies..." && \
# pip install -r requirements.txt && \
# echo "==> Running migrations..." && \
# python3 src/manage.py migrate && \
# echo "==> Collecting static files..." && \
# python3 src/manage.py collectstatic --noinput
echo "==> Entering python shell..."
toolforge webservice --backend=kubernetes python3.11 shell -- \
webservice-python-bootstrap && \
source venv/bin/activate && \
echo "==> Installing dependencies..." && \
pip install -r requirements.txt && \
echo "==> Running migrations..." && \
python3 src/manage.py migrate && \
echo "==> Collecting static files..." && \
python3 src/manage.py collectstatic --noinput

# echo "==> Restarting webservice..."
# toolforge webservice --backend=kubernetes python3.11 restart
echo "==> Restarting webservice..."
toolforge webservice --backend=kubernetes python3.11 restart
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ djangorestframework==3.15.2
markdown==3.7 # Markdown support for the browsable API.
django-filter==24.3 #
jsonpatch==1.33
mysqlclient>=2.0.0
pymysql
3 changes: 3 additions & 0 deletions src/qsts3/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pymysql

pymysql.install_as_MySQLdb()

0 comments on commit 8965ff0

Please sign in to comment.