diff options
| author | nemsia <nemsia@nemsia.org> | 2017-10-11 21:44:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-11 21:44:36 +0200 |
| commit | 956dfc4050f72356bf5f3552c29226da122fb3ae (patch) | |
| tree | e95d95404b13f28df7d06fa948277ff164217eae | |
| parent | 1b737b0c6423b734a9e50e5d13e9b4586478067e (diff) | |
| download | mastodon_ynh-956dfc4050f72356bf5f3552c29226da122fb3ae.tar.gz mastodon_ynh-956dfc4050f72356bf5f3552c29226da122fb3ae.tar.bz2 mastodon_ynh-956dfc4050f72356bf5f3552c29226da122fb3ae.zip | |
Update upgrade
| -rw-r--r-- | scripts/upgrade | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index e734e97..0c469bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,10 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live +version=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | grep tag_name | cut -d\" -f4) sudo su - $app <<SWITCHCOMMANDS pushd ~/live -git checkout $(git tag -l | sort -V | tail -n 1) +git checkout $version SWITCHCOMMANDS # upgrade Node.js v4 to v6 @@ -88,10 +89,6 @@ MCOMMANDS # Apply Mastodon upgrade sudo su - $app <<COMMANDS pushd ~/live -#bin/bundle install -#yarn install --pure-lockfile -# For 1.4.1 -> 1.4.2 migration prepare_for_foreign_keys is needed -# RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile RAILS_ENV=production bundle exec rails db:migrate |
