作者:中国脐橙在线 | 来源:互联网 | 2022-12-04 09:28
我想使用github / rails / rails上可用的最新Rails版本重建我的旧Rails应用程序之一
如何开始使用“ rails new ....”?
1> american-nin..:
看来这可以像这样简单:
$ mkdir example
$ cd example
$ echo "source 'https://rubygems.org'" >> Gemfile
$ echo "gem 'rails', git: 'https://github.com/rails/rails.git'" >> Gemfile
$ bundle install
Fetching https://github.com/rails/rails.git
Fetching gem metadata from https://rubygems.org/.............
Resolving dependencies...
Using rake 12.3.1
$ bundle exec rails new . --dev --force
exist
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
force Gemfile
run git init from "."
$ bundle exec rails server -d
=> Booting Puma
=> Rails 6.0.0.alpha application starting in development
=> Run `rails server --help` for more startup options