A flavorful way to manage your entire WordPress stack. Built and maintained by Human Made.
Coming soon: Provisioning production servers with Salty WordPress.
Salty WordPress uses three great technologies: Salt, Vagrant, and WordPress. It's intended to get you building amazing projects as quickly and effectively as possible.
Here's how to get building:
- Clone the repo:
cd ~/; git clone [email protected]:humanmade/Salty-WordPress.git
. - Install the version of Vagrant and version 4.2.12 of Virtual Box.
- Once Vagrant is installed, install Salty Vagrant plugin to provision (aka configure) your virtual machine with Salt. All you need to do is
vagrant plugin install vagrant-salt
from your local machine. Ignore the other instructions on the Salty Vagrant repo. Salty Vagrant will eventually be merged into Vagrant itself. - Change into the Salty WordPress directory and run
vagrant up
. This will take some time. Behind the scenes, Vagrant and Salt are downloading all of the system utilities (e.g. Nginx, PHP5-FPM, Memcached, etc.) to run your virtual machine. - In your
/etc/hosts
file, point any domains you plan to work on to192.168.50.10
. The virtual machine is configured to handle all requests to*.dev
. The WordPress trunk install, for instance, should bewordpress-trunk.dev
. - Access your virtual machine with
vagrant ssh
.
Navigate to wordpress-trunk.dev
in your browser to see a fully-functional WordPress install, powered by Salty WordPress. The default admin username/password is humanmade/humanmade
.
Make your Salty WordPress experience even more awesome with these neat tricks.
- Deserialize data with
$~ serialize '[php serialized code]'
- Display a timestamp as a human readable string
$~ timestamp 1143123342
[ouputs "2006-03-23T14:15:42+00:00"]
Using couple of neat tools, rsub and rmate, you can open files located in Vagrant in Sublime Text. We've even bound subl
so the syntax is similar to what you have in your local machine.
However, for this functionality to work properly, you'll need to SSH into Vagrant using SSH (and port forwarding), not vagrant ssh
. Use vagrant ssh-config
(ref) to generate what you need to put in ~/.ssh/config
. Then, add RemoteForward 52698 127.0.0.1:52698
to the entry (ref).
Now, when you SSH into Vagrant, you'll automatically set up a connection for rmate to communicate to rsub (a Sublime Text plugin).