Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple Sinatra template
JavaScript Other
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
views
Gemfile
Gemfile.lock
README.md
app.rb
config.ru

README.md

Sinatra Template

A simple Sinatra template modeled after Flask Heroku.

Install

Once you've cloned the repo, simply run:

bundle install

Development Server

To start up the development server, run the following:

bundle exec thin start

If, however, you would prefer to create a screen process to run the development server, then you could use the following commands:

screen -S server
cd path/to/sinatra/template
bundle exec thin start

You can then detach the screen process with CTRL-A-D. To reattach the process, simply run:

screen -R server

Heroku

To upload your application to Heroku, make sure you first have the Heroku gem installed. Then run the following command (with the name of your application substituted for app_name):

heroku create app_name --stack cedar
git push heroku master

Custom Domains

Attaching your own custom domain to your Heroku instance is pretty easy.

heroku addons:add custom_domains
heroku domains:add example.com
heroku domains:add www.example.com

Make sure to attach the following A records using your DNS management tool:

75.101.163.44
75.101.145.87
174.129.212.2

For more information, make sure to read this Heroku devcenter article.

Something went wrong with that request. Please try again.