getkirby-v2 / panel

This is the deprecated admin panel for Kirby v2.
http://getkirby.com
Other
134 stars 70 forks source link

Heroku: "save" wipes my content #156

Closed zakgreene closed 10 years ago

zakgreene commented 10 years ago

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 commented 10 years ago

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

zakgreene commented 10 years ago

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 commented 9 years ago

It looks like this buildpack is no longer being maintained. https://github.com/winglian/heroku-buildpack-php/issues/7

Do you have any other recommendations for buildpacks? @zakgreene

OscarGodson commented 8 years ago

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 commented 8 years ago

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.