From fe652ceb0a7af14504d26a6243e4f97d221618f5 Mon Sep 17 00:00:00 2001 From: nemsia Date: Wed, 30 May 2018 16:09:43 +0200 Subject: [PATCH] rails precompile fix --- scripts/install | 6 +++++- scripts/upgrade | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 491785e..0bd7c05 100644 --- a/scripts/install +++ b/scripts/install @@ -181,9 +181,13 @@ sudo su - $app <> .env.production RAILS_ENV=production bin/bundle exec rails db:setup -RAILS_ENV=production bin/bundle exec rails --trace assets:precompile CCOMMANDS +# Rails precompile on root +pushd $final_path/live +RAILS_ENV=production bin/bundle exec rails --trace assets:precompile +popd + # init rbenv & create bundle sudo su - $app <