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: