Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.