/nanobox-rails

Quickstart for Rails with Nanobox

Primary LanguageRubyMozilla Public License 2.0MPL-2.0

Rails from scratch

Rails from scratch

Run a Rails app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-rails.git

# cd into the rails app
cd nanobox-rails

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local rails.dev

# Run rails as you would normally, with Nanobox
nanobox run rails s

Check it out

Visit your app at rails.dev:3000

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where ruby is installed,
ruby -v

# your gems are available,
gem list

# and your code is mounted
ls

Now What?

For more details about running rails apps with nanobox visit guides.nanobox.io/ruby/rails/