git clone git@github.com:LarvataTW/larvata_rails_template.git /your/path/to/larvata-rails-template
- 執行:
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
即可。
- http://guides.rubyonrails.org/rails_application_templates.html
- http://railsapps.github.io/rails-application-templates.html
- https://www.sitepoint.com/rails-application-templates-real-world/
- http://brewhouse.io/2016/02/01/introducing-brewhouse-rails-template.html
- https://github.com/RailsApps/rails_apps_composer
- https://github.com/lewagon/rails-templates
- https://github.com/mattbrictson/rails-template
- https://github.com/thoughtbot/suspenders
- https://www.justinweiss.com/articles/fast-consistent-setup-for-your-ruby-and-rails-projects/