From de8cb1174e9849ba5b33626613a6373b64aa704d Mon Sep 17 00:00:00 2001 From: teeteejo <72230915+teeteejo@users.noreply.github.com> Date: Fri, 9 Oct 2020 16:14:28 +0100 Subject: [PATCH] dep: replace page (#4476) Replace Go's retired `dep` command with the PHP deployment command from https://deployer.org Ref: https://github.com/golang/dep#dep --- pages/common/dep.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/pages/common/dep.md b/pages/common/dep.md index 0a55e6c7a8..e272f1364a 100644 --- a/pages/common/dep.md +++ b/pages/common/dep.md @@ -1,24 +1,33 @@ # dep -> Tool for dependency management in Go projects. -> More information: . +> A CLI tool for deployment of PHP applications. +> Note: The Go command `dep` with the same name is deprecated and archived. +> More information: . -- Initialize the current directory as the root of a Go project: +- Interactively initialize deployer in the local path (use a framework template with `--template={{template}}`): `dep init` -- Install any missing dependencies (Scans Gopkg.toml and your .go files): +- Deploy an application to a remote host: -`dep ensure` +`dep deploy {{hostname}}` -- Report the status of the project's dependencies: +- Rollback to the previous working release: -`dep status` +`dep rollback` -- Add a dependency to the project: +- Connect to a remote host via ssh: -`dep ensure -add {{package_url}}` +`dep ssh {{hostname}}` -- Update the locked versions of all dependencies: +- List commands: -`dep ensure -update` +`dep list` + +- Run any arbitrary command on the remote hosts: + +`dep run "{{command}}"` + +- Display help for a command: + +`dep help {{command}}`