Development Environment

Setting Up Gitify on a MODX Cloud installation

Gitify on the Cloud

This recipe is courtesy of GitHub comments by sonicpunk and ajilderda.

First, log in to your server with SSH using your Cloud installation's SSH username and server.

  ssh c1234@c1234.paas1.fra.modxcloud.com

Once you're logged in to the server, enter the following commands:

cd www
git clone https://github.com/modmore/Gitify.git Gitify
cd Gitify
curl -sS https://getcomposer.org/installer | php
php composer.phar install
chmod +x Gitify

You may need to change the path to the PHP executable. If it turns out that you do...

nano Gitify

In the nano editor, change the first line from "#!/usr/bin/env php" to

  #!/bin/php

Then open and edit your .profile to add Gitify to your user path.

  nano ~/.profile

add a line,

  PATH=/www/Gitify/:$PATH

Reload your profile by entering

source ~/.profile
cd ..
Gitify

Run Gitify


Susan Ottwell
November 2018