Skip to content

Instantly share code, notes, and snippets.

@airblade
Created November 30, 2021 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airblade/316839acd0319d0e7ac6bffb36e3f7e9 to your computer and use it in GitHub Desktop.
Save airblade/316839acd0319d0e7ac6bffb36e3f7e9 to your computer and use it in GitHub Desktop.
Rails 7 new app
$ mkdir wrapper && cd wrapper
$ echo 'source "https://rubygems.org"' > Gemfile
$ echo 'gem "rails", github: "rails/rails", branch: "main"' >> Gemfile
$ bundle
$ cat ~/.railsrc
--database=postgresql
--skip-action-mailbox
--skip-action-text
--skip-sprockets
--skip-spring
--skip-turbolinks
--skip-jbuilder
--skip-bootsnap
--skip-webpack-install
-a propshaft
#--css=bulma <-- it seems this doesn't work quite right yet; do it manually below
$ bundle exec rails new foo
#=> installation fails on `rails importmap:install` and then `rails turbo:install stimulus:install`
$ cd foo
$ rails importmap:install
$ rails turbo:install
$ rails stimulus:install
Add 'cssbundling-rails' to Gemfile
$ bundle
$ rails css:install:bulma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment