Configuring Homestead NGINX default provision script

homestead custom nginx
Share on facebook
Share on twitter
Share on linkedin

If you would like to customize nginx configuration for specific site, but you don’t want to be customizing it each time when you run provision flag in your reload command,

then here we go with quick tutorial on: how to customize nginx blocks they will be deployed each time you reload your vagrant.

 

When you navigate yourself to your Homestead root directory, you should be able to open scripts directory where you can see following script files:

Enter  cd site-types , and from there copy laravel.sh (is default script) into new config file:

And than edit newconfig.sh *from line 40 to 90:

 

Then let’s get back to your Homestead.yaml file, and in sites section append

That will build this customized nginx configuration on that specific site each time you run with –provision flag.

Subscribe to our newsletter

Be first to read new helpful post

Share this post with your friends

Share on linkedin
Share on xing
Share on twitter
Share on facebook

Changing enum column in Laravel migration

Changing enum type columns is currently not supported in Laravel, and if you try to run something like:

You are about to get following

Leave a Reply

avatar
  Subscribe  
Notify of