mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Yarn install and precompile
Update 2.4 need root to yarn install and precompile, Temporary bad fix.
This commit is contained in:
parent
a3fbc51508
commit
1d6020dcf9
1 changed files with 10 additions and 8 deletions
|
@ -83,18 +83,20 @@ sudo su - $app <<MCOMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
$final_path/.rbenv/versions/2.5.1/bin/gem install bundler
|
$final_path/.rbenv/versions/2.5.1/bin/gem install bundler
|
||||||
$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test
|
$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test
|
||||||
yarn install --pure-lockfile
|
#yarn install --pure-lockfile
|
||||||
MCOMMANDS
|
MCOMMANDS
|
||||||
|
|
||||||
|
pushd $final_path/live
|
||||||
|
yarn install --pure-lockfile
|
||||||
|
popd
|
||||||
|
|
||||||
# Apply Mastodon upgrade
|
# Apply Mastodon upgrade
|
||||||
sudo su - $app <<COMMANDS
|
pushd $final_path/live
|
||||||
pushd ~/live
|
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean
|
||||||
RAILS_ENV=production bundle exec rails assets:clean
|
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:precompile --trace
|
||||||
RAILS_ENV=production bundle exec rails assets:precompile --trace
|
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails db:migrate
|
||||||
RAILS_ENV=production bundle exec rails db:migrate
|
|
||||||
# Upgrade to 2.2.0
|
# Upgrade to 2.2.0
|
||||||
RAILS_ENV=production bundle exec rails mastodon:maintenance:remove_regeneration_markers
|
RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails mastodon:maintenance:remove_regeneration_markers
|
||||||
COMMANDS
|
|
||||||
|
|
||||||
# Restart Mastodon
|
# Restart Mastodon
|
||||||
sudo systemctl start mastodon-*.service
|
sudo systemctl start mastodon-*.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue