Created
December 1, 2011 21:15
-
-
Save anonymous/1419933 to your computer and use it in GitHub Desktop.
convert your app from ITP to heroku
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
Create an account on heroku | |
Download your app from itp.nyu.edu | |
Cleanup config.ru | |
put everything in public | |
Install the heroku gem | |
- launch Terminal | |
- install heroku gem: | |
sudo gem install heroku | |
(type your computer's password) | |
Create the heroku project | |
- add you gems to the .gems file | |
- create a file called .gems in your project folder | |
- add these lines to it: | |
sinatra | |
dm-core | |
dm-yaml-adapter | |
plus any other gems you're using in your project | |
- make your config.ru file look like this: | |
require 'rubygems' | |
require 'sinatra' | |
require './app.rb' | |
run Sinatra::Application | |
- change all your urls to be the right thing, i.e. no itp.nyu.edu in them, etc. | |
- turn our project into a git repository | |
git init | |
git add . | |
git commit -am "initial commit" | |
heroku create <name-of-project> | |
git push heroku master | |
look at your app in the browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment