Created
December 12, 2012 14:08
-
-
Save georgiee/4267984 to your computer and use it in GitHub Desktop.
Static page on heroku based on sinatra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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