1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00
This commit is contained in:
anmol 2019-01-09 17:03:07 +05:30
parent 047dbcf208
commit d4ddcf6642

View file

@ -153,10 +153,9 @@ 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 "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\" echo 'eval "$(rbenv init -)"' >> ~/.bashrc
eval \"\$(rbenv init -)\"" > $final_path/.profile exec bash
echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"" > $final_path/.bashrc
) )
# Install ruby-build # Install ruby-build
@ -170,11 +169,6 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile
rm /usr/bin/ruby || true 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.5.3/bin/ruby /usr/bin/ruby || true
# Yarn install on root
pushd $final_path/live
yarn install --pure-lockfile
popd
# Adjust Mastodon config # Adjust Mastodon config
cp -a $final_path/live/.env.production.sample $final_path/live/.env.production cp -a $final_path/live/.env.production.sample $final_path/live/.env.production
@ -216,7 +210,6 @@ chown -R "$app": "$final_path"
-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