Skip to content

Commit

Permalink
Further provisioning configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
drcongo committed Aug 16, 2024
1 parent f1565b9 commit df1d37e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ TAG = "staging"
GIT_DEPLOY = "CI"

[envs.prod]
HOSTS = ['167.99.201.240', ]
HOSTS = ['138.68.136.240', ]
TAG = "production"
GIT_DEPLOY = "CI"
8 changes: 8 additions & 0 deletions devops/files/production/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MAILTO=""
SHELL=/bin/bash
SERVER_ENV=production

*/10 * * * * /srv/www/app/.venv/bin/python /srv/www/app/manage.py publish_scheduled_pages > /var/log/cronjob.log
*/5 * * * * /srv/www/app/.venv/bin/python /srv/www/app/manage.py runcrons > /var/log/cronjob.log

*/15 * * * * (cd /srv/www/app && chown -R deploy:deploy /srv/www) &>> /var/log/cronjob.log
2 changes: 1 addition & 1 deletion devops/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
157.90.26.158

[production]
167.99.201.240
138.68.136.240

[remote:children]
staging
Expand Down
6 changes: 3 additions & 3 deletions devops/webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# - {role: 'hactar.postgresql', tags: 'postgresql'}
# - {role: 'hactar.python', tags: 'python'}
# - {role: 'hactar.node', tags: 'node'}
# - {role: 'hactar.wsgi', tags: 'wsgi'}
# - {role: 'hactar.supervisor', tags: 'supervisor'}
- {role: 'hactar.caddy2', tags: 'caddy2'}
- {role: 'hactar.wsgi', tags: 'wsgi'}
- {role: 'hactar.supervisor', tags: 'supervisor'}
# - {role: 'hactar.caddy2', tags: 'caddy2'}

0 comments on commit df1d37e

Please sign in to comment.