i have problem to access url in my homestead. when i access site.com is not available. must add port 8000 to my url site.com:8000
how can i remove the port to access url in browser?
here my homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: C:\Users\Ghali\Dropbox\PJ-Space\laravel
to: /home/vagrant/Code/PJ-Space
sites:
- map: pasangjob.backend.app
to: /home/vagrant/Code/PJ-Space/back-end/laravel/public
- map: pasangjob.co.id
to: /home/vagrant/Code/PJ-Space/front-end/public
databases:
- pasangjob_v4
# - pasangjob_v4
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
# to: 777
# protocol: udp
and my host
192.168.10.10 pasangjob.backend.app
192.168.10.10 pasangjob.co.id
Try doing vagrant provision after you configure your homestead.yaml file
Related
Trying to setup Homestead for laravel development. Did every step in laravel docs about homestead, but i cant get my project link running.
I added this line to hosts file
192.168.10.10 shop.dev
this is how my Homestead.yml file looks like:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: c:/users/lukas/.ssh/id_rsa.pub
keys:
- c:/users/lukas/.ssh/id_rsa
folders:
- map: e:/Projektai/Homestead
to: /home/vagrant/Code
sites:
- map: shop.dev
to: /home/vagrant/Code/Parduotuve/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
At first i had some problems running VM but I managed to get it working. However now this is not working at all.
I'm setting up homestead. But when I want to add another website to homestead it points to the same directory?
This is my Homestead.yaml file:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/documents/vagrant/sites
to: /home/vagrant/Code
sites:
- map: test.app
to: /home/vagrant/Code/test
- map: testt.app
to: /home/vagrant/Code/secondtest
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
When I go to testt.app it points to the same directory as test.app. This is how my etc/hosts file looks like:
My homestead directory:
Every time I make changes in my homestead.yaml file I do: "vagrant provision". When I ssh into my homestead server I can go to the directory secondtest so it exists.
In your etc/hosts you should point both domains to 192.168.10.10 IP and not 127.0.0.1
Have you actually run the provision command?
homestead provision
system:windows10 10240
vagrant:1.7.4
virtualbox:5.0.2
and I have tried virtualbox4.3.30,4.3.28,...4.3.12, When I run homestead up , it fails with the same error message:
C:\Windows\system32>homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set network interfaces...
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.
This is my Homestead.yaml file
---
ip: "192.168.0.15"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: D:/wnmp/www
to: /home/vagrant/Code
sites:
- map: homestead.com
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
# to: 777
# protocol: udp
Try different IP like 10.0.0.X
I have just got onto my machine and added a new site to my vagrant setup file in the Homestead.yaml file like so:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Freelance/projects
to: /home/vagrant/projects
- map: /Freelance/projects/synergy-camps/synergy-camps
to: /home/vagrant/projects
sites:
- map: scoff_app.local
to: /home/vagrant/projects/scoff/scoff-api/public
- map: phpmyadmin.app
to: /home/vagrant/projects/phpmyadmin
- map: synergy_camps.dev
to: /home/vagrant/projects/synergy-camps/synergy-camps/public
databases:
- homestead
- synergycamps
databases:
- homestead
- synergycamps
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
When I cd into my /Homestead directory and run:
vagrant up
I get the error below:
default: Warning: Authentication failure. Retrying...
Has anyone had this before?
Are you sure that your key is correct?
It could be possible that your VM is asking a question while booting the machine.
For more options to fix this, see the following answers:
Vagrant ssh authentication failure
I am having trouble accessing a site hosted on a laravel homestead virtual machine, using the hostname homestead.app:8000.
http://homestead.app:8000 returns a "This webpage is not available" message in chrome.
127.0.0.1:8000 returns the 'Laravel 5' landing page, which I was expecting from the above.
I have added the following to the /etc/hosts file on my local machine (and tried a few variations of this).
127.0.0.1 homestead.app:8000
Any obvious reasons why this wouldn't work? Steps that may have been missed?
This is the content of the Homestead.yaml file
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/homestead.pub
keys:
- ~/.ssh/homestead
folders:
- map: ~/Apps/test
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- test
variables:
- key: APP_ENV
value: locals
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
# to: 777
# protocol: udp
Change /etc/hosts on your local machine to this
192.168.10.10 homestead.app
Save and in the browser of your choice on your local machine navigate to
http://homestead.app