Why heroku push is being rejected?

How do you prevent losing your content when you push to your Ghost (Node.js) blog on Heroku?

  • It seems that every time I push a change to Heroku, I have to sign up again as an admin. And my posts dissapear. What am I doing wrong?

  • Answer:

    Heroku uses an ephemeral file system and changes will be overwritten on each deployment. This wipes out the embedded sqlite database that ghost uses by default. If you use postgresql your database will no longer be on the file system and you will avoid this issue. However, you will have the same issue with images if you upload them to the heroku file system (I always use external links for my images anyway, and I keep ghost for my posts themselves). See this link for more information: https://ghost.org/forum/installa... Another option is to use windows azure sites where you can use ftp as an alternative to the git deployment.

Anonymous at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.