set RAILS_ENV=production using shell instead

This commit is contained in:
staticsafe 2017-11-26 21:06:19 -05:00
parent 5bff8365ad
commit d659d42bda

View File

@ -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: