4.7 push to heroku


hello i started TOP recently and im now at 4.7 my push to github was succesfull
only when i try to send it to heroku i get this:

nouji@nouji-VirtualBox:~$ git push heroku master
Counting objects: 5447, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4894/4894), done.
Writing objects: 100% (5447/5447), 180.01 MiB | 2.96 MiB/s, done.
Total 5447 (delta 1457), reused 0 (delta 0)
remote: Compressing source files… done.
remote: Building source:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See h(ttps://devcenter.heroku.com/articles/buildpacks
remote: ! Push failed
remote: Verifying deploy…
remote: ! Push rejected to frozen-fortress-34200.
To h(ttps://git.heroku.com/frozen-fortress-34200.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/frozen-fortress-34200.git

please help me


Looks like you are pushing from the home directory. You need to create a heroku app inside your rails app folder and then push from there.


thanks for your reply.
how do i create a heroku app inside my rails app folder?


Hey nouji!

When you first started creating the proper files for your herokuapp, did you name the working directory frozen-fortress? You would just need to:

$ cd frozen-fortress/

Then once in that directory:

$ git push heroku

Lemme know if this helped.

I also noted that there seems to be this typo:

To h(ttps://git.heroku.com/frozen-fortress-34200.git
! [remote rejected] master -> master (pre-receive hook declined)

This would be my second place to look if the first didn’t offer any insight.


hey nicoleiocana

i tried the command but it gives no such file or directory


From the home directory you need to navigate to the Rails one. type ls and look for the folder you created for that project and then cd into it.

You need to make sure you’re in the top level directory for your rails app so once in there ls should show you the app, config etc directories. It is there you need to heroku create ensuring you commit everything there to git first.


If you still have problems after that please drop by the discord rooms for some live help.