From d659d42bdafe5a0170646db643d83c0932ec46dc Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 26 Nov 2017 21:06:19 -0500 Subject: [PATCH] set RAILS_ENV=production using shell instead --- roles/mastodon-config/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mastodon-config/tasks/main.yml b/roles/mastodon-config/tasks/main.yml index 077cc45..cfddb74 100644 --- a/roles/mastodon-config/tasks/main.yml +++ b/roles/mastodon-config/tasks/main.yml @@ -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: