diff options
Diffstat (limited to 'cmd/ship')
| -rw-r--r-- | cmd/ship/main.go | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/cmd/ship/main.go b/cmd/ship/main.go index 47dd579..cd2b0c1 100644 --- a/cmd/ship/main.go +++ b/cmd/ship/main.go | |||
| @@ -44,7 +44,24 @@ How it works: | |||
| 44 | Requirements: | 44 | Requirements: |
| 45 | • A VPS with SSH access (use 'ship host init' to set up a new server) | 45 | • A VPS with SSH access (use 'ship host init' to set up a new server) |
| 46 | • An SSH config entry or user@host for your server | 46 | • An SSH config entry or user@host for your server |
| 47 | • A domain pointing to your VPS`, | 47 | • A domain pointing to your VPS |
| 48 | |||
| 49 | Examples: | ||
| 50 | # Deploy a Go binary | ||
| 51 | ship --binary ./myapp --domain api.example.com | ||
| 52 | |||
| 53 | # Deploy with auto-generated subdomain (requires base domain) | ||
| 54 | ship --binary ./myapp --name myapp | ||
| 55 | |||
| 56 | # Deploy a static site | ||
| 57 | ship --static --dir ./dist --domain example.com | ||
| 58 | |||
| 59 | # Update config without redeploying binary | ||
| 60 | ship --name myapp --memory 512M --cpu 50% | ||
| 61 | ship --name myapp --env DEBUG=true | ||
| 62 | |||
| 63 | # Set up a new VPS with base domain | ||
| 64 | ship host init --host user@vps --base-domain apps.example.com`, | ||
| 48 | RunE: runDeploy, | 65 | RunE: runDeploy, |
| 49 | SilenceUsage: true, | 66 | SilenceUsage: true, |
| 50 | SilenceErrors: true, | 67 | SilenceErrors: true, |
