aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-10-25 21:43:05 +0200
committerGitHub <noreply@github.com>2017-10-25 21:43:05 +0200
commit5295228ca35226fd7c931096ec0e71677f66fd26 (patch)
treeab73196ddb36f93871422fb62ee11dc37979d75d
parenta8a28748648c58612068c15c72a6b65f59e225e2 (diff)
downloadmastodon_ynh-5295228ca35226fd7c931096ec0e71677f66fd26.tar.gz
mastodon_ynh-5295228ca35226fd7c931096ec0e71677f66fd26.tar.bz2
mastodon_ynh-5295228ca35226fd7c931096ec0e71677f66fd26.zip
Fix install on v2 (#58)
* Fix install v2.0 ruby version * Fix install on v2 add "SAFETY_ASSURED=1" on .env.production
-rw-r--r--scripts/install9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/install b/scripts/install
index 217ca34..f3ac754 100644
--- a/scripts/install
+++ b/scripts/install
@@ -122,17 +122,17 @@ COMMANDS
# Install ruby-build
sudo su - $app <<RCOMMANDS
-/opt/mastodon/.rbenv/bin/rbenv install 2.4.1
-/opt/mastodon/.rbenv/versions/2.4.1/bin/ruby -v
+/opt/mastodon/.rbenv/bin/rbenv install 2.4.2
+/opt/mastodon/.rbenv/versions/2.4.2/bin/ruby -v
RCOMMANDS
# Create symlink for ruby
-sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
+sudo ln -s /opt/mastodon/.rbenv/versions/2.4.2/bin/ruby /usr/bin/ruby || true
# Install Mastodon
sudo su - $app <<MCOMMANDS
pushd ~/live
-/opt/mastodon/.rbenv/versions/2.4.1/bin/gem install bundler
+/opt/mastodon/.rbenv/versions/2.4.2/bin/gem install bundler
bin/bundle install --deployment --without development test
yarn install --production
MCOMMANDS
@@ -168,6 +168,7 @@ sudo sed -i "s@#SMTP_OPENSSL_VERIFY_MODE=peer@SMTP_OPENSSL_VERIFY_MODE=none@g" "
# Preconfig CSS & JS
sudo su - $app <<CCOMMANDS
pushd ~/live
+echo "SAFETY_ASSURED=1">> .env.production
RAILS_ENV=production bin/bundle exec rails db:setup
RAILS_ENV=production bin/bundle exec rails --trace assets:precompile
CCOMMANDS