set RAILS_ENV=production using shell instead
This commit is contained in:
parent
5bff8365ad
commit
d659d42bda
@ -10,7 +10,7 @@
|
||||
become: true
|
||||
become_user: mastodon
|
||||
- name: Run Mastodon database setup
|
||||
shell: cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rails db:setup
|
||||
shell: cd /home/mastodon/live && RAILS_ENV=production /home/mastodon/.rbenv/shims/bundle exec rails db:setup
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
args:
|
||||
@ -18,7 +18,7 @@
|
||||
become: true
|
||||
become_user: mastodon
|
||||
- name: Precompile Mastodon static assets
|
||||
shell: cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rails assets:precompile
|
||||
shell: cd /home/mastodon/live && RAILS_ENV=production /home/mastodon/.rbenv/shims/bundle exec rails assets:precompile
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
args:
|
||||
|
Loading…
Reference in New Issue
Block a user