安装指定rails的版本

Posted
mkdir tolk_server
cd tolk_server
echo "source 'https://rubygems.org'" > Gemfile
echo "gem 'rails', '4.2.11'" >> Gemfile
# echo "gem 'rails', '6.0.1'" >> Gemfile
bundle install
bundle exec rails new . --force --skip-bundle --database=postgresql

ref: https://stackoverflow.com/questions/379141/specifying-rails-version-to-use-when-creating-a-new-application


此文章 短链接: http://dlj.bz/v3g2Mi