diff options
Diffstat (limited to 'bin/hook')
-rw-r--r-- | bin/hook/etc/webhook.conf | 10 | ||||
-rwxr-xr-x | bin/hook/post-receive | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/hook/etc/webhook.conf b/bin/hook/etc/webhook.conf index 95c4ca5..34c2929 100644 --- a/bin/hook/etc/webhook.conf +++ b/bin/hook/etc/webhook.conf @@ -1,6 +1,6 @@ [{ - "id": "deploy-pablotron-org", - "execute-command": "/data/www/pablotron.org/bin/hook/deploy.rb", + "id": "deploy", + "execute-command": "/data/www/example.com/git/bin/hook/deploy.rb", "pass-arguments-to-command": [{ "source": "payload", @@ -10,15 +10,15 @@ "pass-environment-to-command": [{ "source": "string", "envname": "DEPLOY_HTDOCS_PATH", - "name": "/data/www/pablotron.org/htdocs" + "name": "/data/www/example.com/htdocs" }, { "source": "string", "envname": "DEPLOY_REPO_DIR", - "name": "/data/www/pablotron.org/data/git/pablotron.org" + "name": "/data/www/example.com/git" }, { "source": "string", "envname": "DEPLOY_BUILDS_DIR", - "name": "/data/www/pablotron.org/data/builds" + "name": "/data/www/example.com/builds" }], "trigger-rule": { diff --git a/bin/hook/post-receive b/bin/hook/post-receive index 63ff055..a3067b8 100755 --- a/bin/hook/post-receive +++ b/bin/hook/post-receive @@ -13,5 +13,5 @@ set -eu export HOOK_URL='https://example.com/hooks/deploy' export HOOK_HMAC_KEY="omitted" -# trigger webhook -exec /data/www/pablotron.org/data/git/pablotron.org/bin/hook/fire.rb +# trigger webhook request +exec /data/www/example.com/git/bin/hook/fire.rb |