Skip to content

nanobox-quickstarts/nanobox-sinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra from scratch

Sinatra from scratch

Run a Sinatra app locally, install nothing besides nanobox.

Clone the repo

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

# cd into the sinatra app
cd nanobox-sinatra

Run the app

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

# Run sinatra as you would normally, with Nanobox
nanobox run rackup --host 0.0.0.0

Check it out

Visit your app at sinatra.dev:9292

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 sinatra apps with nanobox visit guides.nanobox.io/ruby/sinatra/