i installed mongodb on homestead server. didn't manage proper setup of forwarding ports can manage db gui tool mongochef.
i've added lines vagrantfile it's still not working.
vagrant.configure(vagrantfile_api_version) |config| ... # configure guest services accessible on host config.vm.network "forwarded_port", guest: 3000, host: 3000 config.vm.network "forwarded_port", guest: 27017, host: 27017 ... end
have guys idea?
port forwarding homestead should occurring in homestead.yaml
file, not within vagrantfile
in box location.
modify ~/.homestead/homestead.yaml, scroll bottom:
ports: - send: 3000 to: 3000 - send: 27017 to: 27017
you don't need else here ports forwarded host->guest
without need more configuring. if still doesn't work, issue not here elsewhere.
note need homestead reload --provision
take affect.
Comments
Post a Comment