We only need to copy .env.production once now

setting the SECRET_KEY_BASE environtment variable to 0 allows us to generate a VAPID_KEY
This commit is contained in:
staticsafe 2017-12-11 12:19:56 -05:00
parent 280efc749b
commit f34f5a5eb6

View File

@ -33,13 +33,6 @@
executable: /bin/bash
become: true
become_user: mastodon
- name: Copy Mastodon .env.production the first time
template:
src: .env.production
dest: /home/mastodon/live/.env.production
ignore_errors: True
become: true
become_user: mastodon
- name: Generate VAPID keys and register it
shell: cd /home/mastodon/live && bundle exec rake mastodon:webpush:generate_vapid_key
register: VAPID_KEYS
@ -51,7 +44,7 @@
executable: /bin/bash
become: true
become_user: mastodon
- name: Copy Mastodon .env.production the second time
- name: Copy Mastodon .env.production
template:
src: .env.production
dest: /home/mastodon/live/.env.production