% cd ~/proj
% mkdir heroku_playground
% cd heroku_playground
% git clone git://github.com/heroku/ruby-sample.git
Cloning into 'ruby-sample'...
remote: Reusing existing pack: 27, done.
remote: Total 27 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (27/27), done.
Resolving deltas: 100% (3/3), done.
Checking connectivity... done.
% cd ruby-sample
% git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
% heroku create
Enter your Heroku credentials.
Email:
Password (typing will be hidden):
Creating rocky-sierra-9195... done, stack is cedar
http://rocky-sierra-9195.herokuapp.com/ | git@heroku.com:rocky-sierra-9195.git
Git remote heroku added
% git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
% git remote -v
heroku git@heroku.com:rocky-sierra-9195.git (fetch)
heroku git@heroku.com:rocky-sierra-9195.git (push)
origin git://github.com/heroku/ruby-sample.git (fetch)
origin git://github.com/heroku/ruby-sample.git (push)
% git push heroku master
Initializing repository, done.
Counting objects: 27, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (22/22), done.
Writing objects: 100% (27/27), 3.76 KiB | 0 bytes/s, done.
Total 27 (delta 3), reused 27 (delta 3)
-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.1.0
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Installing daemons 1.1.9
Installing rack 1.5.2
Using bundler 1.6.3
Installing tilt 1.4.1
Installing rack-protection 1.5.2
Installing sinatra 1.4.4
Installing eventmachine 1.0.3
Installing thin 1.6.1
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Bundle completed (20.48s)
Cleaning up the bundler cache.
-----> Discovering process types
Procfile declares types -> web
Default types for Ruby -> console, rake
-----> Compressing... done, 13.9MB
-----> Launching... done, v4
http://rocky-sierra-9195.herokuapp.com/ deployed to Heroku
To git@heroku.com:rocky-sierra-9195.git
* [new branch] master -> master
% heroku open
Opening rocky-sierra-9195... done
Created
July 1, 2014 09:10
-
-
Save otiai10/30bfbf8b15b3c94bae12 to your computer and use it in GitHub Desktop.
heroku tutorial
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks