Skip to content

Commit

Permalink
Add the crontab file to the activate script
Browse files Browse the repository at this point in the history
That we can we can reference it with an environment variable when
deploying.
  • Loading branch information
amstilp committed Jul 11, 2024
1 parent 011e58c commit 72a30dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gregor-apps-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export DJANGO_SITE_DIR=/var/www/django/gregor_apps/
export DJANGO_SITE_USER=gregorweb
export DJANGO_SETTINGS_MODULE=config.settings.apps
export DJANGO_WSGI_FILE=config/gregor_apps_wsgi.py
export DJANGO_CRONTAB=gregor_apps.cron
export GAC_ENV=gregor_apps

cd $DJANGO_SITE_DIR
. venv/bin/activate
2 changes: 2 additions & 0 deletions gregor-apps-dev-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export DJANGO_SITE_DIR=/var/www/django/gregor_apps_dev/
export DJANGO_SITE_USER=gregorweb
export DJANGO_SETTINGS_MODULE=config.settings.apps_dev
export DJANGO_WSGI_FILE=config/apps_dev_wsgi.py
export DJANGO_CRONTAB=gregor_apps_dev.cron
export GAC_ENV=gregor_apps_dev

cd $DJANGO_SITE_DIR
. venv/bin/activate

0 comments on commit 72a30dc

Please sign in to comment.