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:
parent
280efc749b
commit
f34f5a5eb6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue