diff --git a/move_site.sh b/move_site.sh index 2498a0e..9c60ead 100644 --- a/move_site.sh +++ b/move_site.sh @@ -161,6 +161,10 @@ else echo "Please restart nginx by yourself!"; fi 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 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 diff --git a/move_site_interactive.sh b/move_site_interactive.sh index a7299b0..49f1327 100644 --- a/move_site_interactive.sh +++ b/move_site_interactive.sh @@ -165,6 +165,10 @@ else echo "Please restart nginx by yourself!"; fi 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 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