前提条件
$> ruby -v
ruby 3.1.0p0 // you need at least version 3 here
$> bundle -v
Bundler version 2.2.11
$> npm -v
8.3.0 // you need at least version 7.1 here
$> yarn -v
1.22.10
$> psql --version
psql (PostgreSQL) 13.1 // let's use a production-ready database locally
$> foreman -v
0.87.2
$> redis-cli ping
PONG
$> redis-server -v
6.0.5 // you will need at least version 4 here
任何上面的版本都可以使用
安装文件
解压缩并复制/粘贴 "bootrails "目录到你的电脑上。
现在你应该有bootrails应用程序,例如,在~/workspace/bootrails
初始化git
$/bootrails> git init
(可选)重新命名应用程序
也许你想为你的应用程序取一个更自定义的名字。
默认情况下,该应用程序被称为 "bootrails"。
如何在本地安装应用程序
$/bootrails> yarn
$/bootrails> bundle install
$/bootrails> bin/rails db:create db:migrate db:seed