Skip to content

Commit

Permalink
Add the crontab file to the activate script
Browse files Browse the repository at this point in the history
This way we can reference it using an environment variable when
deploying.
  • Loading branch information
amstilp committed Jul 11, 2024
1 parent 548b2c9 commit 25501e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions primed-apps-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export DJANGO_SITE_DIR=/var/www/django/primed_apps/
export DJANGO_SITE_USER=primedweb
export DJANGO_SETTINGS_MODULE=config.settings.apps
export DJANGO_WSGI_FILE=config/primed_apps_wsgi.py
export DJANGO_CRONTAB=primed_apps.cron
export GAC_ENV=primed_apps
cd $DJANGO_SITE_DIR
. venv/bin/activate
1 change: 1 addition & 0 deletions primed-apps-dev-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export DJANGO_SITE_DIR=/var/www/django/primed_apps_dev/
export DJANGO_SITE_USER=primedweb
export DJANGO_SETTINGS_MODULE=config.settings.apps_dev
export DJANGO_WSGI_FILE=config/primed_apps_dev_wsgi.py
export DJANGO_CRONTAB=primed_apps_dev.cron
export GAC_ENV=primed_apps_dev
cd $DJANGO_SITE_DIR
. venv/bin/activate

0 comments on commit 25501e7

Please sign in to comment.