Skip to content

LarvataTW/larvata_rails_template

Repository files navigation

Rails Template

使用說明

  1. git clone git@github.com:LarvataTW/larvata_rails_template.git /your/path/to/larvata-rails-template
  2. 執行:
rails new \
  --database mysql \
  --skip-spring \
  --skip-test-unit \
  --skip-turbolinks \
  --template=/your/path/to/larvata-rails-template/template.rb
  YOUR_RAILS_APP_NAME

建議複製本專案的 railsrc 到 ~/.railsrc, 並且修改其中的 template 路徑以符合實際的本機路徑。
如此一來,直接執行 rails new YOUR_RAILS_APP_NAME 即可。

參考資料

template

dockerize