Skip to main content

Using Heroku For Facebook Application Development - Common Errors

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
1$ % Total % Received % Xferd Average Speed Time Time Time Current
2Dload Upload Total Spent Left Speed
3100 2442 100 2442 0 0 2273 0 0:00:01 0:00:01 --:--:-- 5856
4gpg: no writable keyring found: eof
5gpg: 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 !



Popular posts from this blog

ICFAI Sikkim Distance MBA Review From My Experience

After a long research I joined for the ICFAI distance MBA program in 2012. Now I've completed 2 semesters ( as of 2013 ). I wanted to write this review so that people who are looking for a good MBA program can get a hand-on review about the distance MBA offered by the ICFAI Sikkim. I've been through all the cycles of this program and this review might help you make the right choice about the program. This article presents my own ( and unbiased ) view of the program and is in no way associated with the course provider.


Is the MBA ICFAI Sikkim Approved By UGC?  As per the latest AICTE regulations, a distance education program must have the approval of a joint commission of  UGC- University Grant CommissionAICTE- All Indian Council for Technical EducationDEC- Distance Education CouncilICFAI Sikkim doesn't have this approval (don't get disappointed, it's not over yet). Only institutes and colleges affiliated to a University are required to take AICTE approval. So ICFAI be…

Is MacBook Air Good For Programming / Blogging ?

I'm a passionate java developer who just migrated from a Windows PC netbook ( Dell mini ) to a 13 inch MacBook Air. Before the netbook I owned a Dell inspirion 1501. I'm quite a bit of an avid blogger as well. I purchased Dell mini just as it was launched hoping that it's compact and mobile architecture would solve all of my need as a programmer and a writer. Unfortunately it turned out that it was a worthless device.The rest of the story goes...



Do Not Compare a Netbook With MacBook AirMacBook's astonishing features far exceeds anything that of a normal Netbook.Before
Buying a netbook for programming and blogging was one of the biggest blunders I ever made on choosing a machine. The screen was 11 inch and clumsy icons of the Windows were a disgrace all the time.The tightly arranged keys in the keyboard made typing a pain. It's slow Intel Atom Processor is too sluggish to run even VLC player.


After  The Mac's backlit spacious keyboard layout, 1440x900 resolution d…

Best Places To Eat at Trivandrum

Are you searching for the most amazing places to eat at Trivandrum? Well, this article is a collection of places from where I've carried the taste after eating. All of them are located in Trivandrum. There is no specific focus for a single kind or restaurant, I've written about the latest hot-spot cafes to ethnic and traditional places at the heart of the city and people for decades.
General Places Azad Hotel Azad Hotel is a hotel-chain all over India and they are one of the best hotels in Trivandrum too. They claim to have introduced the popular dish 'biriyani' in India. However, they provide a good ambience and tasty food. There are all kind of popular non-vegetarian dishes available here. They have a long tradition of serving quality food and that's what makes them the best. There are
Zam Zam This is the most sought after destination in city for the best cooked chicken dishes. The 'Shawai' is the all time best seller of Zam Zam. It's very rushy alwa…