-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up the environment
- host computer:
$ - server environment:
>>
https://www.vagrantup.com/downloads.html
https://www.virtualbox.org/wiki/Downloads
$ vagrant box add laravel/homestead
$ vagrant box add laravel/homestead /your/directory/virtualbox.box
$ git clone https://github.com/laravel/homestead.git ~/Homestead
$ cd ~/Homestead
$ git checkout v7.1.2
$ bash init.sh
$ nano homestead.yaml
Note: Map folders how you want them in homestead.yaml
https://hastebin.com/odogehenuy.rb
Note: Edit synced folder directory to suit your needs
$ sudo nano /etc/hosts
add the line "192.168.10.10 your.domain “
$ cd ~/Homestead
$ vagrant up
$ vagrant ssh
>> cd /home/vagrant
>> mkdir Code
>> mkdir Laravel
>> sudo nano /etc/nginx/sites-available/mysite
paste this https://hastebin.com/kalipoposu.nginx and close the file
>> sudo ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/mysite
>> service nginx restart
- start server:
$ vagrant up - stop server:
$ vagrant halt - ssh to server:
$ vagrant ssh - restart server:
$ vagrant reload