Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
disable EE sync
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Dec 19, 2018
1 parent df42333 commit dcc5c89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
18 changes: 9 additions & 9 deletions roles/every_election/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
value: "{{ cron_email }}"
user: "{{ ee_name }}"

- name: Schedule sync local EE data from source
cron:
name: "Sync local EE data from source"
minute: 0
hour: 4
job: "/usr/local/bin/output-on-error /var/www/{{ ee_name }}/env/bin/python /var/www/{{ ee_name }}/code/manage.py sync_elections"
user: "{{ ee_name }}"
become_user: root
become: true
#- name: Schedule sync local EE data from source
# cron:
# name: "Sync local EE data from source"
# minute: 0
# hour: 4
# job: "/usr/local/bin/output-on-error /var/www/{{ ee_name }}/env/bin/python /var/www/{{ ee_name }}/code/manage.py sync_elections"
# user: "{{ ee_name }}"
# become_user: root
# become: true
5 changes: 5 additions & 0 deletions webapp_settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def get_env():
EMAIL_SIGNUP_API_KEY = '{{ vault_email_signup_api_key }}'
CUSTOM_UA = "DemocracyClub/wheredoivote.co.uk"

# when you change this, remember to turn sync back on
# in roles/every_election/tasks/main.yml and
# deploy to a meatier instance than a t3.micro
# EE_BASE = 'http://localhost:8000/'

CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
Expand Down

0 comments on commit dcc5c89

Please sign in to comment.