A great and easy way for us to setup WordPress with the following:
- LayersWP
- Layers Pro (activated)
- Layers Updater (activated)
- WordPress SEO
- Redirection
- WP Security Audit Log
- Gravity Forms
- WooCommerce
For additional information, visit the Official WPDistillery Website. The Documentation on wpdistillery.org is synced with the Github repository files.
To setup a new project running Scotch Box and WordPress, simply follow these steps:
- Run the following command inside your project root to clone both Scotch Box and WPDistillery and move them to the right place:
git clone https://github.com/flickerleap/wpscotch.git && mv wpscotch/Vagrantfile Vagrantfile && mv wpscotch/wpdistillery wpdistillery2 && rm -rf wpscotch && mv wpdistillery2 wpdistillery
- Run
vagrant up
inside your project root (if it fails, runvagrant provision
)
Done! You can now access your project at https://localhost.dev/ or http://192.168.33.10/.
If you want to automatically update WordPress and all Plugins on every vagrant up
you can remove the comment character at line 26 inside the Vagrantfile.
Using Windows? No Problem! WPDistillery will detect if you're using Windows and if so, automatically convert all files using dos2unix.
If the Scotch Box setup was successful, but WPDistillery failed somewhere: fix the error (probably in config.yml
) and use vagrant reload --provision
to reinitialize the WPDistillery setup process.
vagrant up
will start the machine. The first evervagrant up
in your project will also install Scotch Box and execute provisioningvagrant provision
will execute provisioning. This is where WPDistillery runs its core function which is installing and configuring WordPress according toconfig.yml
. Before that, it will also update WP-CLI and set the upload size to 64MB. Normallyvagrant provision
should not be executed manually but can be used to re-run the WPDistillery setup in case you want to re-install WordPress.vagrant reload
will restart vagrant. This is required for changes made in the Vagrantfile to take effect.vagrant halt
will shut down the running machine.- More informations can be found at vagrantup.com.
- Original Author: Flurin Dürst (Website, Mail, Twitter)
- Contributors:
- @ShaneShipston
- @drawcard
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create new Pull Request
Feel free to contact me if you have questions or need any advice.