Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Heroku: "save" wipes my content #156

Closed
zakgreene opened this issue Aug 27, 2014 · 5 comments
Closed

Heroku: "save" wipes my content #156

zakgreene opened this issue Aug 27, 2014 · 5 comments

Comments

@zakgreene
Copy link

I've just deployed my site to Heroku. Works fine locally, but every time I save any page, from any account, all of the content on the page clears. The main reason I ported the site to Kirby 2 was actually because this site had quite a few issues on Heroku using Kirby 1.

I searched and found this Gist: https://gist.github.com/bastianallgeier/3919312
but am unclear about the php/mbstring part. Where do I find that and how do I add it to Heroku's PHP install?

I'd really like to keep using Kirby but these Heroku issues are a dealbreaker. Surprised no one else has encountered this.

The site is http://riffle-kirby2.herokuapp.com
To log into the panel, I've created an account with the username 'test' and password 'test.' Feel free to try this — this isn't a production site.

@zakgreene
Copy link
Author

I've tried a clean install from the starterkit — same problem. http://quiet-beyond-6605.herokuapp.com/

@zakgreene
Copy link
Author

Sorry, it seems this was more of a Heroku issue than a Kirby issue, but in case others are running into it, I've solved it by using a different PHP/Apache buildpack. Here's the buildpack I'm using:
https://github.com/winglian/heroku-buildpack-php

Just set BUILDPACK_URL to that URL, and WWWROOT to "/" in the Heroku config variables.

@ldamon
Copy link

ldamon commented Jan 26, 2015

It looks like this buildpack is no longer being maintained.
winglian/heroku-buildpack-php#7

Do you have any other recommendations for buildpacks? @zakgreene

@OscarGodson
Copy link

Looking for something like this too. I'd love to use Heroku but I'm not sure how to leave the content in place

@zakgreene
Copy link
Author

It turned out that buildpack didn't actually solve the problem at all, it was just slower to reset the .txt files to the original Git committed version. Heroku doesn't allow files in the codebase to be altered dynamically that way, so the Kirby Panel really isn't really compatible with Heroku, unfortunately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants