nginx - App on a Vagrant box running Laravel Homestead only displays 'It Works' upon fresh install of Laravel App -
i install new laravel app /sites
folder called 'blog' using laravel new blog
terminal command.
the site builds fine, no errors on terminal.
then used subl /etc/hosts
command open hosts file in sublime text 3. here contents of file.
## # host database # # localhost used configure loopback interface # when system booting. not change entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 127.0.0.1 laraveltest.app 127.0.0.1 makoto.app 127.0.0.1 modelawiki.app 127.0.0.1 fresher.app 127.0.0.1 blog.app
right let's focus on blog.app.
i use subl homestead.yaml
command open , edit homestead.yaml file , update maps. here's contents of file.
--- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/www/sites to: /home/vagrant/sites sites: - map: blog.app to: /home/vagrant/sites/blog/public - map: laraveltest.app to: /home/vagrant/sites/laraveltest/public - map: makoto.app to: /home/vagrant/sites/makoto - map: modelawiki.app to: /home/vagrant/sites/modelawiki - map: fresher.app to: /home/vagrant/sites/fresher/public databases: - homestead
i run homestead provision
command alias vagrant provision
update , site , running.
now before running vagrant provision
command, every other site (laraveltest.app:8000, makoto.app:8000, etc.) worked fine, , or displayed default laravel splash screen (laraveltest.app:8000).
when visiting of sites mapped in homestead.yaml file, i'm getting following page displayed...
here's html output.
<html><body><h1>it works!</h1></body></html>
i'm confused on did wrong. i'm newer user going through laravel tutorials on laracasts. followed codecourses videos on youtube me install vagrant box onto machine.
i've tried see out there on net issue , find article on laravel valet... seems though isn't tutorial need.
https://laracasts.com/discuss/channels/laravel/valet-v112-update-just-keep-getting-the-it-works
edit: i'm in process of uninstalling vagrant box running laravel/homestead. did vagrant destroy <id>
command , vargrant box remove
. edited /etc/hosts
file , removed edited custom app names. deleted homestead folder containing homestead.yaml
file. i'm starting fresh install here soon.
(posted answer on behalf of op).
i reinstalled including vagrant box, , homestead. runs normal. don't know happened. way can connect sites type port in url. i.e. blog.app:8000
. if visit blog.app
itself, "it works!" header comes , laravel site goes away.
i'm thinking might issue nginx, , port forwarding? since case , original question has been answered myself, i'll asking new question port forwarding , laravel homestead.
Comments
Post a Comment