Skip to content

Instantly share code, notes, and snippets.

@georgiee
Created December 12, 2012 14:08
Show Gist options
  • Save georgiee/4267984 to your computer and use it in GitHub Desktop.
Save georgiee/4267984 to your computer and use it in GitHub Desktop.
Static page on heroku based on sinatra
#Gemfile
source :rubygems
gem 'rack'
gem 'sinatra'
#config.ru
require './app'
run Sinatra::Application
#app.rb
require 'sinatra'
set :public_folder, 'public'
get "/" do
redirect '/navigation.html'
end
#test local
rackup
#push heroku
git init && git add . && git commit -am "init commit"
#add remote to git
#https://devcenter.heroku.com/articles/creating-apps
heroku apps:create myapp
git push heroku master
#yeah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment