Oleander2911 said:
Maybe you need to add the port? Like http://localhost:port
Doesn't work. I tried also changing the default port to 8080 (in case 80 is taken from smth else) and still not working. Tried to restart nginx, and this failed. Tried to check for errors with ~~~sudo nginx -c /etc/nginx/nginx.conf -t~~~ but I got error of permission denied and could not test for errors.
If you've done this for local development, why on earth don't you just use Homestead? It works out of the box (generally) and is the same (Ubuntu 14.04 / Nginx) with all the goodies already setup.
sitesense said:
If you've done this for local development, why on earth don't you just use Homestead? It works out of the box (generally) and is the same (Ubuntu 14.04 / Nginx) with all the goodies already setup.
Okay, you are right. I started upon this challenge. Nevertheless, I've got a problem, when I try to run the vagrant box:
mysystem@me:~/Google Drive/Homestead$ vagrant up
Vagrant failed to initialize at a very early stage:
The home directory you specified is not accessible. The home
directory that Vagrant uses must be both readable and writable.
You specified: /home/mysystem/.vagrant.d
I tried putting the Homestead folder in different places of the system. The Google Drive folder is readable/writable - I create files/folders there without the sudo command. Maybe I am not trying to fix the correct thing, I don't know.
This is my Homestead.yaml file:
authorize: ~/Google Drive/Homestead/.ssh/id_rsa.pub
keys:
- ~/Google Drive/Homestead/.ssh/id_rsa
folders:
- map: ~/Google Drive/Homestead/workspace
to: /home/vagrant/Code
sites:
- map: test.app
to: /home/vagrant/Code/test/public
variables:
- key: APP_ENV
value: local
and the SSH key file that I generated is ~/Google Drive/Homestead/homestead_key.pub
Yaml file looks ok but I wonder if it's stumbling because of the space in the path? Try enclosing the path in quotes maybe and try again.
Also apparently Vagrant is not fond of tabs, replace any tabs with spaces and see how you go.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community