-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Really need to do some work to support a local development copy #14
Comments
@hubrix, at the moment, there's no story around developing on a wordpress-on-heroku site. It's just for pushing WP sites to production. I understand this might be a PITA, so I'm definitely open to suggestions. Can you share how you like to work? If we can come up with a non-crufty approach, I'd consider folding that in to the buildpack |
So here's how I have things set up. I added a wordpress directory to vendor and created a local Apache vhost to point to that. this allows pretty decent local work.
Mark Friedgan On Sunday, March 3, 2013 at 10:57 PM, Marc Chung wrote:
|
Hey @hubrix, you can use object-cache and batcache locally if you have APC. Just add object-cache.php to the gitignore and substitute it for this one: Instead of creating two different wp-config.php files I suggest you to use ENV variables with the same names than Heroku's. To synchronise the db with cleardb you must change two things, the url and the path directory, but you need to avoid corruption in the serialised data. I do it with this script: To push things to s3 I'm using this plugin: |
Thanks to @hubrix and @luisherranz, I got a pretty workable local setup. For others who follow their advice, I'd mention two things:
https://github.com/interconnectit/Search-Replace-DB Import script:
|
Great script! Thanks @cureau! |
I'd like to know how to run this stuff locally. Any way we can get some cut and paste instructions? I'm migrating over from App Fog to Heroku and wp-admin is hanging and I have no idea why. |
I've now gone through the exercise twice of setting up a local copy and it's a big pain. I think it's worth trying to make some generic config so that one is able to run a local copy without too much pain. It basically involves having two wp-config.php files and having a vendor copy of wordpress. I have not figured out how to deal with memcachesasl locally yet, i just disable it.
I also had to do this to object-cache.php but it seems hacky
The text was updated successfully, but these errors were encountered: