Skip to content

Rails setup #2

Description

@MichaelCurrin

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions