views:

988

answers:

1

I am trying to push a rails application to heroku.

When I get to the last step:

git push heroku master

It doesn't work and gives me these errors:

Counting objects: 85, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (85/85), 24.38 KiB, done.
Total 85 (delta 23), reused 0 (delta 0)

-----> Heroku receiving push
 !     Heroku push rejected, no Rails or Rack app detected.

error: hooks/pre-receive exited with error code 1
To [email protected]:smooth-dusk-26.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:smooth-dusk-26.git'

I don't know what I'm doing wrong :(

+4  A: 

When you created your Rails application, did you change directory into the directory of the application? You have to perform all the commands from within the application's directory.

rails myapp
cd myapp
John Topley
yes i had changed it to the wrong directory tho :/ thnx.but now my css files won't work :/
Lily
My public directory is also broken :(
Sam Soffes