mchung / heroku-buildpack-wordpress

Heroku buildpack: Wordpress on Heroku
mchung.github.com/heroku-buildpack-wordpress/
388 stars 333 forks source link

Disable auto-updates? #52

Closed diegopau closed 10 years ago

diegopau commented 10 years ago

Wordpress is auto-updating its core to 3.8.1 everyday. And due to Heroku ephimeral system it goes back to 3.8 once the dyno restarts.

Is any way to prevent this? is it safe to update wordpress manually just following their documentation?

luisherranz commented 10 years ago

It looks like something like this should work: /* Disable automatic updates */ define( 'AUTOMATIC_UPDATER_DISABLED', true );

I'm going to test it and if it works, I will do a pull request.

okko commented 10 years ago

There's already a pull request on wordpress-on-heroku, see https://github.com/mchung/wordpress-on-heroku/pull/10

okko commented 10 years ago

@diegopau, to update to 3.8.1:

heroku labs:enable user-env-compile
heroku config:set WORDPRESS_VERSION=3.8.1

and push something to heroku to force a recompile

luisherranz commented 10 years ago

Oh, great then :)

I hope mchung check your PR soon.

diegopau commented 10 years ago

Thank you both! I didn't know there was a pull request for that already. I tried okko solution and worked like a charm. I leave this open so mchung can see it and decide if close it or not!

okko commented 10 years ago

Merged!

xlozinguez commented 10 years ago

Sorry to bring this back up but I am getting the same issue with update to 3.9... I am not sure how to fix this... It keeps looping and says the databse needs to be updated. Issue #9 seems to relate to the same problem... At this point it seems really unstable unfortunately and I am trying to figure out how to fix that... @okko @diegopau @mchung can any of you guys help me out? I am on the latest Heroku cedar stack and am using the latest heroku-buildpack-wordpress... Let me know what other info you need...