0

I'm trying to deploy my rails application with heroku (as shown here). I've created a very simple rails application (using ruby 1.9.2 and rails 3.0.3; i'm sure heroku supports these - see heroku docs), created and pushed github repo, created heroku repo and pushed it (all commiting is done). And when i'm trying to access my application controller, it throws 404 rails page like it's saying 'there is no such controller'. I've done heroku rake db:migrate but first time i ran it i got 'host not found' error. Running this again fixed that. Well, i'm not sure if i should run heroku addons add:postgresql - i though postgres is on by default, but heroku says i should pay in order to get DB (running command i've mentioned asks me to confirm billing it).

May be it sounds stupid, but how can i deploy my rails application (it's a very simple one) without paying any fees and such troubles as 404 pages like i mentioned in the beginning of my post? (and this is my question). Maybe i should choose other hosting (if it exists in our world) or am i doing something wrong with heroku?

Nakilon
  • 34,866
  • 14
  • 107
  • 142
shybovycha
  • 11,556
  • 6
  • 52
  • 82

1 Answers1

3

You forgot to push your quotes_controller.rb to git and heroku probably.

git add controllers/quotes_controller.rb

it seems you forgot models also, and probably lot of files.

Pasta
  • 1,750
  • 2
  • 14
  • 25
  • damn it... yeah, thanks! i've spent nearly 4 or more hrs searching for errors and seems that the main error was my git using ineptitude =P – shybovycha Jan 18 '11 at 22:56
  • You can cheat and use `git add .` to add any files that aren't already tracked, in future. It'll save you the hassle, and it will (of course) still abide by your .gitignore file. – elithrar Jan 19 '11 at 05:08
  • i'm using `git commit -a` instead of `git add . && git commit` – shybovycha Jan 19 '11 at 08:03
  • rails new yourapp > git init > git add . is fine. After that git add yourfiles and git commit or git commit -a is fine too. – Pasta Jan 19 '11 at 09:03