Use composer to install Gitify on your environment
composer global require modmore/gitify:^2
You can either manually install MODX or use gitifies built in command gitify modx:install
.
The primary thing to watch for is that it is the same version as your source environment.
In the root of your MODX environment, initialize git and hook it up to your source project repo.
git init
git remote add origin [email protected]/some/project.git
git pull origin
First install packages to avoid errors.
gitify package:install --all
I found that some packages errored during this and required me to log in to the MODX site and manually install them.
Now you can build the site from gitify.
gitify build -f
The first time you build, you will want to include the -f
but subsequent builds should not require this.
When you want to push changes up to the repo, you will need to Extract them from the site, commit the changes and push them up.
gitify extract
git add .
git commit -m "some message about the changes"
git push
When you want to pull these changes down, you will pull from the repo and Build them into the site.
git pull
git build