Basic wordpress kickstarter project that runs locally on Vagrant, production on DigitalOcean, are provisioned by puppet and uses git.
Based on markjaquith/WordPress-Skeleton, MikeRogers0/vagrant-nginx-wordpress-puppet and this excellent post.
- Your webroot is
/files
- All writable directories are symlinked to similarly named locations under
/shared/
. - Your production stack is hosted on DigitalOcean
Install vagrant-digitalocean.
Install vagrant-hostsupdater
Clone this repository like git clone [email protected]:jnettome/wordpress_kickstart.git my-wordpress-project
Configure your Vagrantfile
as your needs.
In order to use with DigitalOcean you need to change your DigitalOcean's API credentials in Vagrantfile
.
If you're working on development
cd my-wordpress-project
vagrant up
Or if you're working on production deployment and provisioning
cd my-wordpress-project
vagrant up --provider=digital_ocean
This command will create a new droplet, setup your SSH key for authentication, create a new user account, and run the provisioners configured.
When you are switching from production to development or the opposite, remove .vagrant/
from your project's root folder (info).
Access your wordpress on http://192.168.4.20 or pointing to your hostname from Vagrantfile if you're using vagrant-hostsupdater.
Default mysql credentials:
hostname: localhost
database: wordpress
username: wordpress
password: wordpress-vagrant
- Vagrant hosts plugin
- Better production provisioning (secure)
- Configure deploy method (git or capistrano)