Skip to content

Instantly share code, notes, and snippets.

@bitfidget
Created March 14, 2014 04:07
Show Gist options
  • Save bitfidget/9541999 to your computer and use it in GitHub Desktop.
Save bitfidget/9541999 to your computer and use it in GitHub Desktop.
A quick rundown of committing to git and heroku

First make sure you have created your Gemfile and config.ru

Gemfile should contain something like:

source "http://rubygems.org" gem 'sinatra' group :development do gem 'pry' end

config.ru should have something like:

require './main.rb' run Sinatra::Application

You also need to set up a whole new git repository for the folder that you are trying to add to heroku.

before you do anything else - make sure that in terminal you are in the folder with your project and enter the command 'bundle'

  1. git status
  2. git init
  3. git status
  4. git add .
  5. git commit -m "commit message"
  6. you can then 'git push origin master' to setup the git repository OR

to get Heroku moving:

  1. heroku create
  2. git push heroku master

finally: heroku open

this will open up your project in a browser window!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment