Skip to content

Commit

Permalink
Merge pull request #339 from knatten/publish-scripts
Browse files Browse the repository at this point in the history
Fix publish scripts after server move
  • Loading branch information
knatten authored Jun 14, 2024
2 parents 9df029c + 8854be3 commit bccef6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deployment/dreamhost/cronjobs/auto_publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

source $HOME/cppquiz.org/venv/bin/activate || exit $?
python $HOME/cppquiz.org/cppquiz/manage.py auto_publish || exit $?
source $HOME/sites/cppquiz.org/venv/bin/activate || exit $?
python $HOME/sites/cppquiz.org/cppquiz/manage.py auto_publish || exit $?

4 changes: 2 additions & 2 deletions deployment/dreamhost/cronjobs/dump_published.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

source $HOME/cppquiz.org/venv/bin/activate || exit $?
python $HOME/cppquiz.org/cppquiz/manage.py dump_published_questions > $HOME/cppquiz.org/public/static/published.json || exit $?
source $HOME/sites/cppquiz.org/venv/bin/activate || exit $?
python $HOME/sites/cppquiz.org/cppquiz/manage.py dump_published_questions > $HOME/static.cppquiz.org/published.json || exit $?

0 comments on commit bccef6c

Please sign in to comment.