Use this package to create a new project including Laravel and Wordpress. Wordpress controls the web root and Laravel handles all routes in public_html/app folder
- Install Composer so that you can run
composer install
from terminal. The composer.phar used for running composer can either be used from the current project folder by runningphp composer.phar install
or setup globally viacomposer install
on Windows or OSX/Unix. - Install Node.js & NPM. This is requred for Grunt and Bower to function.
- Install Grunt by running
npm install -g grunt-cli
after NPM is installed. - Install Bower
npm install -g bower
. - Install Virtual Box.
- Install Vagrant.
- Run
composer install
to get all the required assets for this package. This will grab Laravel and Wordpress, along with install Node and Bower dependencies. - Update .env and puphpet/config.yaml with correct settings. The database connection settings should match.
- Add the vagrant box ip and server name from puphpet/config.php to your host file.
- run
vagrant up
to spin up virtual machine for development. - generate a new key for Laravel by running
php artisan key:generate
. - open vagrant.laravel-wordpress.com in your browser, if the 2015 theme for workdpress loads then your good to go!
- Go to vagrant.laravel-wordpress.com/app and you should see the big "Laravel 5" splash screen.
This package comes with a vagrant package to develop in. run vagrant up
to spin up the box. Make sure to add 192.168.56.106 vagrant.laravel-wordpress.com
to your host file.
If there's already a entry with this same ip then update it in your puphpet/config.yaml file
If you need to make a modification to your php dependencies update the composer.json file and then run composer update
This package comes with a grunt file setup for preprocessing css and js files.
- Run
grunt watch
to have watcher check for changes in asset files - Run
grunt
orgrunt production
to preprocess asset files manually - Modify the gruntfile.js to modify file locations if needed.
- Update the bower.json file to update your bower dependencies. All Bower packages get installed under public_html/bower_components then run
bower update
to update your dependencies.
A primary user is created for Wordpress, you can login by going to /wp/wp-admin
- Username admin
- Password password
A base theme using underscores is started in /public_html/wp-content/themes/mytheme for theme development
Open Adminer by going to 192.168.56.106/adminer in the browser.
- Username root
- Password root