user1250211
user1250211

Reputation: 11

deployment first ruby on rails app on heroku

For an university exam, I'm creating a Ruby on Rails app.

Currently, my app is working on http://localhost:3000/say/hello.

I would like to upload my app on Heroku web server. The problem is that it doesn't run the hello world program. Instead I see the start view of Ruby on Rails app: http://tecweb2.heroku.com/.

How do I get my hello world program to run on Heroku?

Upvotes: 1

Views: 571

Answers (2)

Andre Dublin
Andre Dublin

Reputation: 1158

you should use this command to understand whats going on

heroku logs

whatever shows up in red is what you are having problems with

here is the workflow that I use

create the heroku app

heroku create --stack cedar

push to your git repo

git push origin master 

push to heroku repo

git push heroku master

rake the databse in heroku

heroku run rake db:migrate

Here is the heroku getting started guide for rails 3

http://devcenter.heroku.com/articles/rails3

Upvotes: 1

Andrew France
Andrew France

Reputation: 4879

You need to follow the instructions on that page, mainly delete the public/index.html page.

Upvotes: 2

Related Questions