mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
clean upgrade
This commit is contained in:
parent
ab809ca078
commit
a8b521b84a
1 changed files with 2 additions and 3 deletions
|
@ -40,7 +40,7 @@ sudo systemctl stop mastodon-*.service
|
|||
# Change owner of live folder
|
||||
sudo chown -R $app: $final_path/live
|
||||
|
||||
# upgrade Node.js v4 to v6
|
||||
# upgrade Node.js v4 to v6
|
||||
node_version=$(nodejs --version)
|
||||
if [[ $node_version =~ ^v4.*$ ]]; then
|
||||
pushd /opt
|
||||
|
@ -79,10 +79,9 @@ ynh_package_install pkg-config libprotobuf-dev protobuf-compiler
|
|||
# Apply Mastodon upgrade
|
||||
sudo su - $app <<COMMANDS
|
||||
pushd ~/live
|
||||
# pkg-config libprotobuf-dev protobuf-compiler
|
||||
bin/bundle install
|
||||
yarn install --pure-lockfile
|
||||
# RAILS_ENV=production bundle exec rails assets:clean
|
||||
RAILS_ENV=production bundle exec rails assets:clean
|
||||
RAILS_ENV=production bundle exec rails assets:precompile
|
||||
RAILS_ENV=production bundle exec rails db:migrate
|
||||
COMMANDS
|
||||
|
|
Loading…
Add table
Reference in a new issue