Git Product home page Git Product logo

Comments (9)

theolampert avatar theolampert commented on May 27, 2024

@irthos MAMP/WAMP or Vagrant I guess? I haven't actually tried but I imagine either would work.

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

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.

dmtintner avatar dmtintner commented on May 27, 2024

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.

xyu avatar xyu commented on May 27, 2024

You can have composer skip the hhvm platform dependency locally (#20):

$ composer update --ignore-platform-reqs

from heroku-wp.

dmtintner avatar dmtintner commented on May 27, 2024

Awesome, so for anyone else coming here, here's how I did it:

  1. Run composer
    $ composer update --ignore-platform-reqs (I had a problem finding the jetpack repo so needed to remove that from composer.json)
  2. download the heroku config plugin:
    $ heroku plugins:install git://github.com/ddollar/heroku-config.git
  3. pull heroku config variables
    heroku config:pull --overwrite --interactive
  4. change the database url in .env file to match those of your local host
  5. run mamp and set the root web server director to public.built

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

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.

dmtintner avatar dmtintner commented on May 27, 2024

@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.

xyu avatar xyu commented on May 27, 2024

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.

xyu avatar xyu commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.