Skip to content

Instantly share code, notes, and snippets.

@blairanderson
Last active January 28, 2023 17:00
Show Gist options
  • Save blairanderson/116030279e9fccd857c770a4ea2d6ba5 to your computer and use it in GitHub Desktop.
Save blairanderson/116030279e9fccd857c770a4ea2d6ba5 to your computer and use it in GitHub Desktop.
new rails applications

create the app

RUN rails new your_app_name --database=postgresql --skip-jbuilder --master --javascript=esbuild --css=bootstrap --version 7.0.4 --skip-bundle

install javascript

RUN ./bin/rails javascript:install:esbuild

install css/bootstrap

RUN ./bin/rails css:install:bootstrap

create github repo

  • RUN gh repo create your_app_name
  • RUN git remote add origin git@github.com:blairanderson/your_app_name.git

Database

RUN be rake db:create db:migrate

Development

ADD config.hosts << "app.lvh.me" to development.rb RUN rails g controller home show RUN rails g controller dashboard show RUN rails g controller auth0

RUN heroku local -f Procfile.dev

Production

RUN heroku create your_app_name RUN bundle lock --add-platform x86_64-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment