Created
November 30, 2021 12:35
-
-
Save airblade/316839acd0319d0e7ac6bffb36e3f7e9 to your computer and use it in GitHub Desktop.
Rails 7 new app
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
$ 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