Heroku

Create ssh key:

$ ssh-keygen -t rsa -C "moc.liamtoh|19eibeerf#moc.liamtoh|19eibeerf" (Use defaults)

Ensure heroku gem installed:

$ sudo gem install heroku

Create git repository and commit

$ cd myapp
$ git init && git add . && git commit -m "first commit"

$ heroku create
Creating growing-sword-43……….. done
Created http://growing-sword-43.heroku.com/ | moc.ukoreh|tig#moc.ukoreh|tig:growing-sword-43.git
Git remote heroku added

$ git push heroku master
The authenticity of host 'heroku.com (75.101.163.44)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,75.101.163.44' (RSA) to the list of known hosts.
Counting objects: 458, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (439/439), done.
Writing objects: 100% (458/458), 247.28 KiB, done.
Total 458 (delta 140), reused 0 (delta 0)

-> Heroku receiving push
-> Rails app detected
Compiled slug size is 204K
-> Launching…… done
http://growing-sword-43.heroku.com deployed to Heroku

To moc.ukoreh|tig#moc.ukoreh|tig:growing-sword-43.git
* [new branch] master -> master

$ heroku rake db:migrate

Now goto https://api.heroku.com/myapps and refresh page to see new app

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License