Skip to content

Instantly share code, notes, and snippets.

@vmcilwain
Last active November 26, 2021 21:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmcilwain/b44100e32165c82793d4df8691cee4e4 to your computer and use it in GitHub Desktop.
Save vmcilwain/b44100e32165c82793d4df8691cee4e4 to your computer and use it in GitHub Desktop.
Steps to install rails 6.0 alpha
Pre reqs:
I installed these using homebrew
* nodejs
* yarn
Create an application directory manually
$ mkdir app_name
Cd into the directory and create a Gemfile manuall
$ touch Gemfile
Add the following
---
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails', branch: 'master' # Use rails 6.0.0.alpha, FIXME: to be updated on rails release
---
Run bundler
$ bundle install
Check the rails version is the alpha version
$ rails --version
=> Rails 6.0.0.alpha
Generate the rails internals ('Y' when prompted to overwrite Gemfile)
$ rails new . --dev
Reset the rails pointer from local version back to git repo in Gemfile
From:
---
gem 'rails', path: "/Users/vell/.rvm/gems/ruby-2.5.1/bundler/gems/rails-d1c76dd4b0d3"
---
To:
---
gem 'rails', github: 'rails/rails', branch: 'master'
---
Re-run bundler to set the lockfile
$ bundle install
Run webpacker installer
$ rails webpacker:install
Run the rails server
$ rails s
@swissonelabs
Copy link

wow! so much helpful

@nikodunk
Copy link

Thanks for this!

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