1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00
This commit is contained in:
anmol 2019-01-09 17:12:23 +05:30
parent d4ddcf6642
commit 2d8b197984

View file

@ -153,9 +153,10 @@ chown -R "$app": "$final_path"
( (
cd $final_path/.rbenv cd $final_path/.rbenv
src/configure && make -C src src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"
exec bash eval \"\$(rbenv init -)\"" > $final_path/.profile
echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"" > $final_path/.bashrc
) )
# Install ruby-build # Install ruby-build
@ -206,10 +207,11 @@ chown -R "$app": "$final_path"
cd "$final_path/live" cd "$final_path/live"
su mastodon <<INSTALL su mastodon <<INSTALL
$final_path/.rbenv/versions/2.5.3/bin/gem install bundler --no-ri --no-rdoc $final_path/.rbenv/versions/2.5.3/bin/gem install bundler --no-ri --no-rdoc
$final_path/live/bin/bundle install \ bundle install \
-j$(getconf _NPROCESSORS_ONLN) \ -j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test --deployment --without development test
yarn install --pure-lockfile yarn install --pure-lockfile
echo "SAFETY_ASSURED=1">> .env.production
RAILS_ENV=production $final_path/live/bin/bundle exec rails db:migrate --quiet RAILS_ENV=production $final_path/live/bin/bundle exec rails db:migrate --quiet
RAILS_ENV=production $final_path/live/bin/bundle exec rails assets:precompile --quiet RAILS_ENV=production $final_path/live/bin/bundle exec rails assets:precompile --quiet
INSTALL INSTALL