Last active
November 26, 2021 21:42
-
-
Save vmcilwain/b44100e32165c82793d4df8691cee4e4 to your computer and use it in GitHub Desktop.
Steps to install rails 6.0 alpha
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wow! so much helpful