Homestead provision or vagrant provision should restar an load all the services
Homestead serve Not Restarting nginx
I updated my local development environment to the new version of Homestead with Ubuntu 16.04 per the Laravel 5.2 documentation.
I've always been able to run something like the following from within the homestead machine:
$ serve new-project.app /home/vagrant/Code/new-project/public
This has been my go to video for quick project setup (one of Jeffrey's). It shows the process well. Really nice workflow.
And it would restart nginx, outputting something this:
dos2unix: converting file /vagrant/scripts/serve.sh to Unix format ...
nginx stop/waiting
nginx start/running, process 20087
php5-fpm stop/waiting
php5-pfm start/running, process 20102
And that would allow me to serve new projects without having to update the hosts file.
Now when I run serve in that way, the output is only as follows:
dos2unix: converting file /vagrant/scripts/serve.sh to Unix format ...
And I have to restart nginx before I can serve the new project by running this next:
$ sudo service nginx restart
Haven't addressed the stopping and starting of php5-fpm yet and am not sure of its implications.
I'm just wanting to make sure I'm not missing something. Are others experiencing the serve command running differently than before?
It looks like the functionality was removed from the serve command. Note that serve as removed some time ago in favour of separate serve-laravel, serve-symfony2, serve-proxy, and serve-hhvm commands. None of which are documented currently, though I'm not sure if this is via intentional omission or just being missed out.
The serve command ought to be considered legacy now, I think, given it's no longer documented and the Homestead docs suggest editing the Homestead.yaml file and running vagrant provision after adding new files.
Please or to participate in this conversation.