Fix bug.
This commit is contained in:
parent
89bbbb1b63
commit
00607f96bf
|
@ -161,6 +161,10 @@ else
|
||||||
echo "Please restart nginx by yourself!";
|
echo "Please restart nginx by yourself!";
|
||||||
fi
|
fi
|
||||||
rm -f Gemfile.lock
|
rm -f Gemfile.lock
|
||||||
|
ruby_ver=`basename $(readlink -n $rvm_prefix/rvm/rubies/default)|cut -d '-' -f 2`
|
||||||
|
if [[ ! -z "$ruby_ver" ]]; then
|
||||||
|
echo "$ruby_ver" > .ruby-version
|
||||||
|
fi
|
||||||
bundle install
|
bundle install
|
||||||
rm -f tmp/unicorn.sock tmp/pids/unicorn.pid
|
rm -f tmp/unicorn.sock tmp/pids/unicorn.pid
|
||||||
wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/start_site.sh -O start_site.sh
|
wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/start_site.sh -O start_site.sh
|
||||||
|
|
|
@ -165,6 +165,10 @@ else
|
||||||
echo "Please restart nginx by yourself!";
|
echo "Please restart nginx by yourself!";
|
||||||
fi
|
fi
|
||||||
rm -f Gemfile.lock
|
rm -f Gemfile.lock
|
||||||
|
ruby_ver=`basename $(readlink -n $rvm_prefix/rvm/rubies/default)|cut -d '-' -f 2`
|
||||||
|
if [[ ! -z "$ruby_ver" ]]; then
|
||||||
|
echo "$ruby_ver" > .ruby-version
|
||||||
|
fi
|
||||||
bundle install
|
bundle install
|
||||||
rm -f tmp/unicorn.sock tmp/pids/unicorn.pid
|
rm -f tmp/unicorn.sock tmp/pids/unicorn.pid
|
||||||
wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/start_site.sh -O start_site.sh
|
wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/start_site.sh -O start_site.sh
|
||||||
|
|
Loading…
Reference in New Issue