Correction de syntaxe dans Phase 4

This commit is contained in:
2018-05-07 11:59:46 +02:00
parent 1251cef00e
commit e01310d60f

View File

@@ -3,23 +3,24 @@
# Let's install ruby 2.5.0 # Let's install ruby 2.5.0
echo Phase 4: Installation de Ruby echo Phase 4: Installation de Ruby
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build || exit 301 git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build || exit 301
rbenv install 2.5.0 || exit 302 cd .rbenv || exit 302
rbenv global 2.5.0 || exit 303 rbenv install 2.5.0 || exit 303
rbenv global 2.5.0 || exit 304
ruby -v ruby -v
cd ~ cd ~
git clone https://github.com/tootsuite/mastodon.git live || exit 304 git clone https://github.com/tootsuite/mastodon.git live || exit 305
cd live || exit 305 cd live || exit 306
git checkout $(git tag | tail -n 1) || exit 306 git checkout $(git tag | tail -n 1) || exit 307
echo "gem: --no-document" > ~/.gemrc || exit 307 echo "gem: --no-document" > ~/.gemrc || exit 308
gem install bundler --no-ri || exit 308 gem install bundler --no-ri || exit 309
echo Launch the installation echo Launch the installation
bundle install --deployment --without development test || exit 309 bundle install --deployment --without development test || exit 310
yarn install || exit 310 yarn install || exit 311
cp .env.production.sample .env.production || exit 311 cp .env.production.sample .env.production || exit 312
echo "# Service dependencies" >>.env.production echo "# Service dependencies" >>.env.production
echo REDIS_HOST=localhost >>.env.production echo REDIS_HOST=localhost >>.env.production
@@ -41,7 +42,7 @@ echo "# Federation" >>.env.production
echo LOCAL_DOMAIN=mastodon.lescorpsdereve.space >>.env.production echo LOCAL_DOMAIN=mastodon.lescorpsdereve.space >>.env.production
echo LOCAL_HTTPS=false >>.env.production echo LOCAL_HTTPS=false >>.env.production
RAILS_ENV=production bundle exec rails db:setup || exit 312 RAILS_ENV=production bundle exec rails db:setup || exit 313
RAILS_ENV=production bundle exec rails assets:precompile || exit 313 RAILS_ENV=production bundle exec rails assets:precompile || exit 314
exit 0 exit 0