2017-12-13 16:18:16 +00:00
|
|
|
# dep
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Deploy PHP applications.
|
2020-10-09 16:14:28 +01:00
|
|
|
> Note: The Go command `dep` with the same name is deprecated and archived.
|
|
|
|
> More information: <https://deployer.org>.
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2023-11-12 03:08:58 +00:00
|
|
|
- Interactively initialize deployer in the local path (use a framework template with `--template=template`):
|
2017-12-13 16:18:16 +00:00
|
|
|
|
|
|
|
`dep init`
|
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Deploy an application to a remote host:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep deploy {{hostname}}`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Rollback to the previous working release:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep rollback`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Connect to a remote host via SSH:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep ssh {{hostname}}`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- List commands:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep list`
|
|
|
|
|
|
|
|
- Run any arbitrary command on the remote hosts:
|
|
|
|
|
|
|
|
`dep run "{{command}}"`
|
|
|
|
|
|
|
|
- Display help for a command:
|
|
|
|
|
|
|
|
`dep help {{command}}`
|