You might come across several issues while deploying facebook applications from heroku. This article describes most of the pitfalls you can avoid if you are are not very familiar with the environment. Mostly, I'd refer you to already existing tutorials that are hard to find on googling. These have been compiled together after several confusing research on the topic for long hours. Hope this might save someone's time if you are just starting up. This article is a supplement to the guide from Heroku
You could follow the guide as it is initially and then come back to this article if it doesn't succeed at the first few attempts.
Setting Up Heroku
Error 1
Solution: Avoiding Pitfalls (Solution)
Error 2
Access Deinied (Public Key)
Set up and upload a public key by following the steps from 1 to 5 of the this page.
Error 3
Command : git clone git@heroku.com:[your app name].git -o heroku
Error Message:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Solution: Stackoverflow
Error 4
Command : git push heroku
fatal: 'heroku' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Solution: This happens simply because you are not inside the application folder. Browse to the application folder through the terminal and then run git push heroku again.
Error 5
Command : git push heroku
Response : Everything up-to-date
Although you've made changes to the files . When you deploy it those changes won't be reflected in your app running on the server. This is because we haven't commited the changes made to the application files.
Solution :
Remember that you have to commit the changes locally before you can push them.
If you do a
If it's not (my prediction):
git add [path to your app folder]
You could follow the guide as it is initially and then come back to this article if it doesn't succeed at the first few attempts.
Setting Up Heroku
Error 1
1 | $ % Total % Received % Xferd Average Speed Time Time Time Current |
2 | Dload Upload Total Spent Left Speed |
3 | 100 2442 100 2442 0 0 2273 0 0:00:01 0:00:01 --:--:-- 5856 |
4 | gpg: no writable keyring found: eof |
5 | gpg: error reading `-': general error |
6 |
| gpg: import from `-' failed: general error |
Solution: Avoiding Pitfalls (Solution)
Error 2
Access Deinied (Public Key)
Set up and upload a public key by following the steps from 1 to 5 of the this page.
Error 3
Command : git clone git@heroku.com:[your app name].git -o heroku
Error Message:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Solution: Stackoverflow
Error 4
Command : git push heroku
fatal: 'heroku' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Solution: This happens simply because you are not inside the application folder. Browse to the application folder through the terminal and then run git push heroku again.
Error 5
Command : git push heroku
Response : Everything up-to-date
Although you've made changes to the files . When you deploy it those changes won't be reflected in your app running on the server. This is because we haven't commited the changes made to the application files.
Solution :
Remember that you have to commit the changes locally before you can push them.
If you do a
git status
, it should be clean.If it's not (my prediction):
git add [path to your app folder]
git commit -am "Your commit message"
git push heroku master
Reference
Finally I'm done !
Comments
Post a Comment