mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
rails precompile fix
This commit is contained in:
parent
08e8238074
commit
fe652ceb0a
2 changed files with 6 additions and 1 deletions
|
@ -181,9 +181,13 @@ sudo su - $app <<CCOMMANDS
|
|||
pushd ~/live
|
||||
echo "SAFETY_ASSURED=1">> .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 <<BCOMMANDS
|
||||
. ~/.profile
|
||||
|
|
|
@ -95,6 +95,7 @@ popd
|
|||
pushd $final_path/live
|
||||
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean
|
||||
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:precompile --trace
|
||||
popd
|
||||
|
||||
sudo su - $app <<UCOMMANDS
|
||||
pushd ~/live
|
||||
|
|
Loading…
Add table
Reference in a new issue