Comments (9)
@irthos MAMP/WAMP or Vagrant I guess? I haven't actually tried but I imagine either would work.
from heroku-wp.
To be honest because the first dyno in all heroku apps are free I just have a dev app that I push to and test things out with then squash / push the commits to my production WP instance after I'm satisfied.
You may be able to run these dynos locally with Foreman that comes as part of the Heroku Toolbelt however I have not tried that yet. There's also a request to build this into a Docker file that can be run locally as well (#4) but I have not had much time to work on that.
from heroku-wp.
Ive been messing with a local installation of this and keep getting stuck on composer not finding hhvm, if anyone has any ideas about that I would really appreciate it
from heroku-wp.
You can have composer skip the hhvm platform dependency locally (#20):
$ composer update --ignore-platform-reqs
from heroku-wp.
Awesome, so for anyone else coming here, here's how I did it:
- Run composer
$ composer update --ignore-platform-reqs (I had a problem finding the jetpack repo so needed to remove that from composer.json) - download the heroku config plugin:
$ heroku plugins:install git://github.com/ddollar/heroku-config.git - pull heroku config variables
heroku config:pull --overwrite --interactive - change the database url in .env file to match those of your local host
- run mamp and set the root web server director to public.built
from heroku-wp.
Awesome, thanks for documenting that @dmtintner. Would you mind adding a section to the readme with that into and doing a pull request?
Thanks!
from heroku-wp.
@xyu will do, just want to finalize the process to something general for everyone and then will put it there.
The last thing that I have that is still not perfect is I need to run composer install every time I change something in the public directory in order to view it locally. I'm thinking a grunt watch task that copies changes made in the public directory to the public.built could solve this. Any other thoughts?
from heroku-wp.
I'm not sure what the best way to go about this, perhaps the best way to go about this is to build a vagrant instance so that everything is self-contained. It will not be a perfect sandbox but could be made much closer to Heroku then standard MAMP.
As for recursively copying, I don't think it's a great solution because what would happen if we remove a file from /public on the local install that have already been copied over to /public.built? We could instead tweak the build process to create a symlink tree which can be used in a grunt task to get around needing to rebuild using composer. (This will be a bit faster then pure composer but I'm not sure if it's worth the extra complexity.)
from heroku-wp.
I'm starting a branch to build a vagrant instance for running this locally:
https://github.com/xyu/heroku-wp/compare/vagrant
from heroku-wp.
Related Issues (20)
- How to install from private bitbucket ? HOT 1
- include_once() error messages HOT 2
- Auto redirect to HTTPS HOT 3
- Storing images in S3 failed HOT 1
- Composer wpackagist missing file error HOT 2
- Authy has been deprecated HOT 1
- Deploy button? HOT 1
- 502 Bad Gateway HOT 4
- Non-standard mysql port HOT 3
- Composer fails RuntimeException Could not delete HOT 1
- Custom plugins are missing after composer install HOT 1
- sh: 1: ./support/app_slug_compile.sh: Permission denied HOT 1
- Mu-plugins information appears on the head HOT 2
- Themes nor Plugins cannot be added HOT 5
- Error logs not showing HOT 3
- Error establishing a database connection HOT 6
- Error running heroku run wp core install HOT 1
- Getting errors after creation of functions.php
- Error running locally
- Failure running WordPress locally. Folder mount fails on Vagrant 2.1.4 (MacOS Big Sur)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-wp.