Use the Heroku cloud service on Ubuntu to publish rails applications

Source: Internet
Author: User
Tags heroku logs

Premise:

Already installed Ruby, Rails, Git

===============================================================

Setup Heroku for the first time

$sudo Gem Install Heroku

Set Heroku account number, need email and password, please apply for free in http://www.heroku.com/

$ Heroku Keys:add
===============================================================
$ Heroku Create

Prompted to create a test server called growing-snow-5298 on the Heroku cloud server

Creating growing-snow-5298 ... done, the stack is bamboo-mri-1.9.2
http://growing-snow-5298.heroku.com/| Git@heroku.com:growing-snow-5298.git
Git Remote Heroku added

$ git remote-v
Heroku Git@heroku.com:growing-snow-5298.git (Fetch)
Heroku Git@heroku.com:growing-snow-5298.git (push)
Origin Git@github.com:yangjiang2k/first_app.git (Fetch)
Origin Git@github.com:yangjiang2k/first_app.git (push)

$ git push Heroku Master

$ heroku Rename Berryreloadfirstapp

Now you can access the host's rails application in Heroku:

Http://BerryReloadFirstApp.heroku.com



===============================================================

Heroku the wrong line:

$ Heroku Logs

===============================================================
Reference: If Heroku publish application error, then tell GitHub server the correct heroku cloud server domain name

Http://stackoverflow.com/questions/2947190/pushing-app-to-heroku-problem

Git remote-v
Git remote RM heroku
git remote add Heroku git@heroku.com:growing-snow-5298.git


===============================================================

Heroku Application Run Error:

$ Heroku Logs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.