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
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
become: true become: true
become_user: mastodon become_user: mastodon
- name: Run Mastodon database setup - 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: environment:
RAILS_ENV: production RAILS_ENV: production
args: args:
@ -18,7 +18,7 @@
become: true become: true
become_user: mastodon become_user: mastodon
- name: Precompile Mastodon static assets - 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: environment:
RAILS_ENV: production RAILS_ENV: production
args: args: