Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on MODX Cloud - Anyone got it running? #107

Closed
sonicpunk opened this issue Jun 12, 2015 · 12 comments
Closed

Installation on MODX Cloud - Anyone got it running? #107

sonicpunk opened this issue Jun 12, 2015 · 12 comments

Comments

@sonicpunk
Copy link
Contributor

I went through the steps, installed Gitify, Composer, ran the composer install script... changed CHMOD.

From within my Gitify folder, the terminal tells me that Gitify is not found.
Here is my file structure:
screen shot 2015-06-12 at 10 23 51

Anyone have a tip?

@studiorepublic
Copy link

If you haven't added Gitify to your path, then sometimes you need to user ./Gitify rather than Gitify to execute it. Have you tried that?

@sonicpunk
Copy link
Contributor Author

yes, I get the following -ash: ./Gitify not found

@Mark-H
Copy link
Member

Mark-H commented Jun 12, 2015

After chatting with the lovely Elizabeth, this is an environment specific issue on the particular Cloud instance you're using.

The workaround is to edit the Gitify file, and to change the first line to #!/bin/php instead of #!/usr/bin/env php. That's not very portable, so I wont be making that change to Gitify, but at least it gets you up and running ;)

This probably isn't an issue on the regular cloud servers.

@Mark-H Mark-H closed this as completed Jun 12, 2015
@sonicpunk
Copy link
Contributor Author

On a regular cloud instance, - the Amsterdam server I also needed to make this edit to the Gitify file

@sonicpunk
Copy link
Contributor Author

So I got Gitify running on MODX Cloud except when I type in Gitify --help, I get the following error:
Fatal error: Call to undefined function Symfony\Component\Console\Descriptor\json_encode() in /www/Gitify/vendor/symfony/console/Symfony/Component/Console/Descriptor/TextDescriptor.php on line 238

@sonicpunk
Copy link
Contributor Author

Also instead of running composer install, I needed to run it this way $ php composer.phar install

@sonicpunk
Copy link
Contributor Author

and when I use Gitify build, I get the following error:
Fatal error: Class 'PDO' not found in /www/core/xpdo/xpdo.class.php on line 3041

@sonicpunk
Copy link
Contributor Author

It turns out it was a cloud problem. I have create the following path for people to follow in case they wish to run Gitify on the cloud:

  1. run git clone of gitify in the www folder: $ git clone https://github.com/modmore/Gitify.git Gitify
  2. install composer inside of the new Gitify folder: curl -sS https://getcomposer.org/installer | php
  3. $ php composer.phar install - install the dependencies needed for Gitify
  4. $ chmod +x Gitify
  5. if needed, change the php path in the Gitify/Gitify file - #!/bin/php
  6. make Gitify global - open the profile: vi ~/.profile
  7. press i to edit
  8. add path to Gitify export PATH=/www/Gitify/:$PATH - you can find it under home/.profile
  9. restart the .profile file: . .profile

@andrejilderda
Copy link

Thanks for the steps @sonicpunk! There's a typo in step 8:
PATH:/www/Gitify/:$PATH should be PATH=/www/Gitify/:$PATH.

@sonicpunk
Copy link
Contributor Author

Thanks @ajilderda I edited my comment above

@andrejilderda
Copy link

andrejilderda commented Apr 18, 2017

The same steps as above, but a bit easier to copy paste for us lazy people. Ssh-login to your MODX Cloud instance:

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
nano Gitify

change first line from #!/usr/bin/env php to #!/bin/php

nano ~/.profile

add PATH=/www/Gitify/:$PATH

source ~/.profile
cd ..
Gitify

@claytonk
Copy link

claytonk commented Jul 9, 2019

UPDATE: The following is no longer necessary and will break Gitify (at least it did on my cloud instance)

change first line from #!/usr/bin/env php to #!/bin/php

Seems to work fine with the first line left as is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants