Start new Modx projects quickly.
- Install Vagrant, Virtualbox and Ansible
- Clone this repository
- Change into the cloned directory
- Run
vagrant up
A virtual machine will be created, based on Ubuntu 14.04, with the latest available versions of the following software installed:
- Apache2
- PHP
- MySQL
- Modx
- Gitify
Visit http://localhost:8080/manager/ in your browser to log into the Modx dashboard.
The default Modx admin account is admin
and the password is password
.
You can develop your site in Modx as usual.
- Type
vagrant ssh
from within the ModXpedite directory (cloned from github) to log into the virtual machine. - The default MySQL account is
root
. There is no password. - The Modx web root is
/var/vhost/modx
. - The ModXpedite directory (cloned from Github) is mounted at
/vagrant
inside the virtual machine
Gitify is a tool that can extract Modx data to a file structure so that it can be committed to git. Such a workflow might look like this:
- Do some work in Modx.
- From the web root of the virtual machine, run
gitify extract
. The contents of the Modx database are exported. They are stored in themodx
subdirectory of the ModXpedite directory - outside the VM. - Commit the contents of the
modx
directory to git.
The process can be reversed if you want to work in an external editor and then import your changes into Modx: use the gitify build
command. This can also be used to move a site between Modx instances, for example, from development to staging or production.
Detailed instructions for using Gitify are on the Gitify wiki.