mirror of
https://github.com/dagu-org/dagu.git
synced 2025-12-28 06:34:22 +00:00
Merge pull request #1234 from dagu-org/update-doc
doc: remove deprecated field name in the doc
This commit is contained in:
commit
9aad8dd5c7
@ -153,7 +153,7 @@ steps:
|
||||
|
||||
# Working directory
|
||||
- name: in-directory
|
||||
dir: /app/src
|
||||
workingDir: /app/src
|
||||
command: npm install
|
||||
```
|
||||
|
||||
|
||||
@ -223,10 +223,6 @@ steps:
|
||||
- name: custom-dir
|
||||
workingDir: /custom # Override DAG workingDir
|
||||
command: pwd # Outputs: /custom
|
||||
|
||||
- name: also-custom
|
||||
dir: /another # Alternative to workingDir
|
||||
command: pwd # Outputs: /another
|
||||
```
|
||||
|
||||
### Queue Configuration
|
||||
|
||||
@ -251,11 +251,11 @@ Set where commands execute:
|
||||
```yaml
|
||||
steps:
|
||||
- name: in-project
|
||||
dir: /home/user/project
|
||||
workingDir: /home/user/project
|
||||
command: python main.py
|
||||
|
||||
- name: in-data
|
||||
dir: /data/input
|
||||
workingDir: /data/input
|
||||
command: ls -la
|
||||
```
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ env:
|
||||
- SOME_FILE: ${SOME_DIR}/some_file
|
||||
steps:
|
||||
- name: task
|
||||
dir: ${SOME_DIR}
|
||||
workingDir: ${SOME_DIR}
|
||||
command: python main.py ${SOME_FILE}
|
||||
```
|
||||
|
||||
|
||||
@ -582,7 +582,7 @@ env:
|
||||
- API_KEY: ${SECRET_API_KEY}
|
||||
steps:
|
||||
- name: task
|
||||
dir: ${SOME_DIR}
|
||||
workingDir: ${SOME_DIR}
|
||||
command: python main.py ${SOME_FILE}
|
||||
```
|
||||
|
||||
@ -858,7 +858,7 @@ Run multi-line scripts.
|
||||
```yaml
|
||||
steps:
|
||||
- name: step in specific directory
|
||||
dir: /path/to/working/directory
|
||||
workingDir: /path/to/working/directory
|
||||
command: pwd && ls -la
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user