Skip to content

Instantly share code, notes, and snippets.

@dannevang
Last active May 3, 2024 18:27
Show Gist options
  • Save dannevang/941b949f6f89e331e99ad87f327cfb9f to your computer and use it in GitHub Desktop.
Save dannevang/941b949f6f89e331e99ad87f327cfb9f to your computer and use it in GitHub Desktop.
DDEV modx gitify command

DDEV custom gitify command for modx / modmore gitify

This assumes that:

  1. You are using DDEV & it is running
  2. Gitify 2 is installed with composer inside a /gitify/ in the project root
  3. A config.core.php has been added to the gitify folder that points to the MODX install
  4. The gitify file from this gist has been added to .ddev/commands/web/ folder
#!/bin/bash
## Description: Run gitify commands through DDEV
## Usage: gitify [flags] [args]
## Example: "ddev gitify extract"
## ExecRaw: true
cd /var/www/html/gitify/
./vendor/bin/gitify $@
@rfay
Copy link

rfay commented May 3, 2024

The correct location for the file is .ddev/commands/web (for a project) or ~/.ddev/commands/web (globally). (Not "DDEV", which won't work on case-sensitive filesystems.

Misspelling of "commonad" in title.

It will probably help people if you add comments explaining how to install in the gitify command.

Adding a link to gitify would be good too, as I'd never heard of it before.

If this gains traction you may want to create a DDEV add-on to install and maintain it, then you'll have an issue queue, etc.

@dannevang
Copy link
Author

@rfay thx! Updated the gist :)

@rfay
Copy link

rfay commented May 3, 2024

Interesting, you may want to PR this into https://github.com/modmore/gitify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment