fix: rename env variables (remained after the project was renamed)
This commit is contained in:
@@ -107,14 +107,14 @@ remote.commands = ["pm2 restart pages"]
|
||||
[projects.my-node-app.local_after]
|
||||
commands = [
|
||||
'del /q dist',
|
||||
'curl -s -X POST https://example.com/hook -d "result=%XBP_DEPLOY_RESULT%"',
|
||||
'curl -s -X POST https://example.com/hook -d "result=%XD_DEPLOY_RESULT%"',
|
||||
]
|
||||
```
|
||||
|
||||
Внутри доступны переменные (в cmd — `%VAR%`, в sh — `$VAR`):
|
||||
|
||||
- `XBP_DEPLOY_RESULT` — `success` либо `failed`;
|
||||
- `XBP_ERROR` — текст ошибки (только при `failed`).
|
||||
- `XD_DEPLOY_RESULT` — `success` либо `failed`;
|
||||
- `XD_ERROR` — текст ошибки (только при `failed`).
|
||||
|
||||
Эти же переменные доступны в `--dry-run`, где показываются в плане без
|
||||
выполнения.
|
||||
|
||||
Reference in New Issue
Block a user