Simple shell script that creates a new Laravel project and installs Homestead (per project installation) with PHPMyAdmin and adds project domains to host machine's /etc/hosts file.
git clone https://github.com/rahamatj/light.gitcd lightchmod +x lightsudo cp light /usr/local/bin
- Run
light blogto create a new Laravel project namedblog. - The script will ask you for Vagrant box IP, Memory and the number of CPUs to use.
- The script will automatically create project domain, project database name, PHPMyAdmin domain, Vagrant box name and hostname according to your project name and print these information after execution.
- You can change these later from
Homestead.yamlwhich will reside in your project root directory. - The script will ask for your root password to add your project domains to the host machine's
/etc/hostsfile. - Run
vagrant upto get the box up and running. - Open up a browser and go to your project url. For a project named
blog, the project url will behttp://blog.lcl.net. - Access PHPMyAdmin from an url something like this -
http://blog.pma.netfor a project namedblog. Default credentials are usernamehomesteadand passwordsecret. - For an existing Laravel project just run
lightfrom project root directory and the script will take care of the rest.