Git Product home page Git Product logo

Comments (10)

xyu avatar xyu commented on August 18, 2024

So the latest Vagrant should have modified your hosts file so that heroku.local resolves to 192.168.50.100. I'm not sure why it's not doing that. What OS are you using?

If it's OS X / Unix try adding the following to your /etc/hosts file.

192.168.50.100  herokuwp.local

from heroku-wp.

aeblin avatar aeblin commented on August 18, 2024

I'm on OSX, and modifying /etc/hosts did seem to work. Not sure why it'd be behaving that way. Either way, my immediate issue is resolved. Curious if anyone else has run into something similar?

from heroku-wp.

aeblin avatar aeblin commented on August 18, 2024

Actually, quick update here. After doing a quick vagrant halt, vagrant up - herokuwp.local/ still resolves, but now returns nginx's "further configuration is required" welcome page, instead of Wordpress. Seems like something may not be quite right with the Vagrant set up.

from heroku-wp.

xyu avatar xyu commented on August 18, 2024

Can you do vagrant destroy then vagrant up and gist the logs or any errors in your error logs?

from heroku-wp.

aeblin avatar aeblin commented on August 18, 2024

Oh man, weird, weird, weird. So I did vagrant destroy and vagrant up once and got the nginx "further configuration is required" message. Just did it again to get logs for you - on the same branch - no "further configuration is required" message this time, just WP's default setup page.

Here's the logs from the successful attempt.
https://gist.github.com/aeblin/6287133a08cb82b1c520

And the logs from the attempt just prior that resulted in the "further configuration is required" message.
https://gist.github.com/aeblin/8aace6c09e9a66ab704a

Worth noting these both happened from the same branch, with no code changes, and using the same terminal window.

from heroku-wp.

xyu avatar xyu commented on August 18, 2024

Yeah that's weird, I'm not seeing any failures in the unsuccessful run. Just out of curiosity what's your Vagrant version and are you using VirtualBox or some other provider?

Edit: Ignore the second part from your gist it looks like you are using VirtualBox, what version of that are you running?

from heroku-wp.

aeblin avatar aeblin commented on August 18, 2024

Running VirtualBox 4.3.20 and Vagrant 1.7.2.

Things are still very inconsistent as to whether or not herokuwp.local/ resolves between vagrant halt and vagrant up - really strange issue.

Edit: Here's a gist of a failure I received on vagrant up after vagrant halt
https://gist.github.com/aeblin/76e47ea91324f9f1d6e4

from heroku-wp.

xyu avatar xyu commented on August 18, 2024

@aeblin Interesting, so I wasn't able to reproduce this issue however from your logs it looks like your VM was not able to mount the shared folder to /app within the VM. Maybe try reinstalling Vagrant and VirtualBox?

Relevant log lines:

==> herokuwp: Exporting NFS shared folders...
==> herokuwp: Preparing to edit /etc/exports. Administrator privileges will be required...
==> herokuwp: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o 'vers=3,udp' 192.168.56.1:'/Users/aeblin/heroku-wp' /app

Stdout from the command:



Stderr from the command:

stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.56.1:/Users/aeblin/heroku-wp

from heroku-wp.

dmtintner avatar dmtintner commented on August 18, 2024

It also did not add heroku.local to my hosts file. After manually adding that line, it worked fine

from heroku-wp.

xyu avatar xyu commented on August 18, 2024

This thread is pretty old and I just rebuilt the Vagrant environment in af3cd22 to fix a bunch of outstanding issues. The README was also updated in 17826d0 along with new configs for the vagrant-hostmanager plugin is that's installed to automatically manage the hosts file on the host computer.

Given all those changes I think the issue encountered here should be resolved so I'm closing this issue.

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.