mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[enh] bundle and yarn install on restore
This commit is contained in:
parent
c78abc8b6c
commit
c11dea6e72
1 changed files with 6 additions and 3 deletions
|
@ -153,11 +153,14 @@ ynh_secure_remove $final_path/mastodon_db.sql
|
|||
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
|
||||
|
||||
# Upgrade Mastodon
|
||||
#sudo su - $app <<RCOMMANDS
|
||||
#cd ~/live
|
||||
sudo su - $app <<RCOMMANDS
|
||||
cd ~/live
|
||||
bin/bundle install
|
||||
yarn install --pure-lockfile
|
||||
#RAILS_ENV=production bin/bundle exec rails db:migrate
|
||||
#RAILS_ENV=production bundle exec rails assets:clean
|
||||
#RAILS_ENV=production bin/bundle exec rails assets:precompile
|
||||
#RCOMMANDS
|
||||
RCOMMANDS
|
||||
|
||||
# Restore nginx configuration files
|
||||
sudo cp -a ./nginx.conf "$nginx_conf"
|
||||
|
|
Loading…
Add table
Reference in a new issue