mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Fix
This commit is contained in:
parent
047dbcf208
commit
d4ddcf6642
1 changed files with 3 additions and 10 deletions
|
@ -153,10 +153,9 @@ chown -R "$app": "$final_path"
|
|||
(
|
||||
cd $final_path/.rbenv
|
||||
src/configure && make -C src
|
||||
|
||||
echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"
|
||||
eval \"\$(rbenv init -)\"" > $final_path/.profile
|
||||
echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"" > $final_path/.bashrc
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||
exec bash
|
||||
)
|
||||
|
||||
# Install ruby-build
|
||||
|
@ -170,11 +169,6 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile
|
|||
rm /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
|
||||
|
||||
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) \
|
||||
--deployment --without development test
|
||||
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 assets:precompile --quiet
|
||||
INSTALL
|
||||
|
|
Loading…
Add table
Reference in a new issue