directus-remote-trigger/README.md

48 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2022-11-08 14:53:02 +01:00
> ## ⚠️ As of Directus 9 this is not longer needed!
>
> Use the native [WebHooks](https://docs.directus.io/reference/system/webhooks.html#webhooks)
2020-07-24 23:56:48 +02:00
# Directus Remote Trigger
Trigger remote urls in the Directus admin view.
2020-07-24 23:59:05 +02:00
![Screenshot](https://i.imgur.com/Cnl3PBn.png)
2020-07-24 23:56:48 +02:00
## Motivation
I needed a way to trigger my Vercel build as the native hooks support in the settings page would require a hook for each crud operation on each collection.
## Getting Started 🚀
2020-07-25 00:07:47 +02:00
1. Download the [latest release](https://github.com/cupcakearmy/directus-remote-trigger/releases/latest)
2. Unzip `unzip remote-trigger.zip`
2020-07-24 23:59:05 +02:00
3. Add it to the docker config
```yaml
version: '3.7'
services:
mysql:
...
directus:
image: directus/directus:v8-apache
volumes:
2020-07-25 00:03:41 +02:00
- ./remote-trigger:/var/directus/public/extensions/custom/modules/remote-trigger
2020-07-24 23:59:05 +02:00
```
2020-07-24 23:56:48 +02:00
## Local
```bash
# Start the dev script
npm run dev
# Start
docker-compose up -d
# If you have not initialized the DB yet.
docker-compose run --rm directus install --email hi@example.org --password h4x0r
# http://localhost
```