0

I have just signed up on heroku and trying to add a first, single static html page to the app. I followed the exact procedure to clone the repo and now trying to add the file, but keep getting this message:

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:pak-attacks.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:my-project-saif.git'

Anyone has any idea about what is happening or what needs to be done? Many thanks.

khan
  • 7,005
  • 15
  • 48
  • 70
  • And http://stackoverflow.com/a/13436954/6309 wouldn't help? – VonC Jan 04 '14 at 10:52
  • but i don't have any gem file.. i only have a html page that i want to push. Do i need a gemfile? – khan Jan 04 '14 at 11:00
  • No, I meant more in the general idea of the linked answer: "I think to generalize the other answers here, when you get this error it's because Heroku is missing some key file that it uses to identify your app (and its type)". Not sure about the specific missing file in your case though. – VonC Jan 04 '14 at 11:04

2 Answers2

6

Rename your static file to index.php - it will then be detected as a PHP application and will work fine - even if you're not using PHP.

John Beynon
  • 37,398
  • 8
  • 88
  • 97
0

I encounter the same problem while pushing my rails project to heroku.

until I tried to use the following command to create in heroku, then succeed!!! You should try this as well.

"heroku create --stack cedar"

AndyZhuang
  • 31
  • 2