aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
authoranmol <github@datamol.org>2019-01-21 16:37:43 +0530
committeranmol <github@datamol.org>2019-01-21 16:37:43 +0530
commit6a0aab6a93abc3a73fbef2e434bdf6279bd43122 (patch)
tree453989ed726cff03655aaa1e72459a754574486e /scripts/upgrade
parent95745611d4dd81ba87e2da36f4ce59875f475c2d (diff)
downloadmastodon_ynh-6a0aab6a93abc3a73fbef2e434bdf6279bd43122.tar.gz
mastodon_ynh-6a0aab6a93abc3a73fbef2e434bdf6279bd43122.tar.bz2
mastodon_ynh-6a0aab6a93abc3a73fbef2e434bdf6279bd43122.zip
Upgraded to version 2.7.0
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index d337e6d..3c0405c 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -144,25 +144,25 @@ chown -R "$app": "$final_path"
# Install ruby 2.5.1
(
- exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.5.3 || true
- exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3 || true
- exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v
+ exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.6.0 || true
+ exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.6.0 || true
+ exec_as "$app" $final_path/.rbenv/versions/2.6.0/bin/ruby -v
)
# Create symlink for ruby
rm /usr/bin/ruby || true
-ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true
+ln -s $final_path/.rbenv/versions/2.6.0/bin/ruby /usr/bin/ruby || true
# Preconfig CSS & JS
# Install Mastodon
(
sudo su - $app <<MCOMMANDS
pushd ~/live
-$final_path/.rbenv/versions/2.5.3/bin/gem install bundler
+$final_path/.rbenv/versions/2.6.0/bin/gem install bundler
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
- $final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --without development test
+ $final_path/.rbenv/versions/2.6.0/bin/bundle install --deployment --without development test
else
- $final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --force --without development test
+ $final_path/.rbenv/versions/2.6.0/bin/bundle install --deployment --force --without development test
fi
yarn install --pure-lockfile
MCOMMANDS
@@ -177,13 +177,13 @@ popd
# Apply Mastodon upgrade
(
pushd $final_path/live
-RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:clean
-RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:precompile
+RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails assets:clean
+RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile
popd
sudo su - $app <<COMMANDS
pushd ~/live
-RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails db:migrate
+RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails db:migrate
COMMANDS
)