Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
convert your app from ITP to heroku
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