bundle exec rails new ~/code/sitebuilder --javascript=esbuild --css=tailwind --dev --database=postgresql --skip-action-mailbox
Last active
October 8, 2021 16:02
-
-
Save qichunren/52c6b447fba4358526704cb0529a1b62 to your computer and use it in GitHub Desktop.
rails project default template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment 'config.time_zone = "Beijing"' | |
environment 'config.i18n.default_locale = "zh-CN"' | |
environment 'config.i18n.fallbacks = true' | |
environment 'config.i18n.available_locales = %w(en zh-CN)' | |
environment 'config.action_mailer.default_url_options = { host: ENV[\'HOST\'] }' | |
environment %Q( | |
config.generators do |generate| | |
generate.helper false | |
generate.assets false | |
generate.view_specs false | |
end | |
) | |
generate(:controller, "home index") | |
generate(:controller, "pages about") | |
route "root to: 'home#index'" | |
gem 'bootstrap', '~> 5.1.0' | |
gem 'kaminari' | |
gem_group :development do | |
gem "capistrano", "~> 3.16", require: false | |
end | |
inside('app/assets/stylesheets') do | |
run "mv application.css application.scss" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment