code-cookbook icon indicating copy to clipboard operation
code-cookbook copied to clipboard

Rails setup

Open MichaelCurrin opened this issue 3 years ago • 0 comments

Setup a Rails project without installing Rails globally.

echo '# frozen_string_literal: true

source "https://rubygems.org"

gem "rails"
' > Gemfile
bundle config set --local path vendor/bundle
bundle install
bundle exec rails -v
# Rails 6.0.3.4
bundle exec rails new blog # maybe . rather?
# Initialized empty Git repository in /Users/mcurrin/repos/rails-quickstart/blog/.git/

From https://guides.rubyonrails.org/getting_started.html

MichaelCurrin avatar Oct 12 '20 13:10 MichaelCurrin