Skip to content

Commit

Permalink
chore: temporarily disables deployment to Toolforge
Browse files Browse the repository at this point in the history
  • Loading branch information
Carybé committed Feb 22, 2025
1 parent 392a848 commit 2daae68
Showing 1 changed file with 15 additions and 15 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

0 comments on commit 2daae68

Please sign in to comment.