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 <