Skip to content

Instantly share code, notes, and snippets.

@thomd
Last active October 3, 2015 18:58
Show Gist options
  • Save thomd/2508514 to your computer and use it in GitHub Desktop.
Save thomd/2508514 to your computer and use it in GitHub Desktop.
Sinatra Templates
get '/env' do
ENV['RACK_ENV']
end
require 'rubygems'
require 'bundler'
Bundler.require(:default, ENV['RACK_ENV'].to_sym)
require './app'
run Sinatra::Application
source :rubygems
gem 'sinatra'
group :development do
gem 'sinatra-contrib', :require => 'sinatra/reloader'
gem 'foreman'
end
web: bundle exec rackup config.ru -p $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment