Skip to content

Commit

Permalink
chore: remove default env file
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Nov 12, 2024
1 parent e4bafde commit a6cf633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

A simple yet powerful Go-based CLI tool for automating Docker container deployments to remote servers. This tool handles the entire deployment process including building Docker images, transferring them to remote hosts, and managing container lifecycle.


https://github.com/user-attachments/assets/4034a7b3-67d6-4e9d-88ef-70bd6d1906d7

<https://github.com/user-attachments/assets/4034a7b3-67d6-4e9d-88ef-70bd6d1906d7>

## Prerequisites

Expand Down Expand Up @@ -74,14 +72,14 @@ go build -o copepod
|-----------------|---------------------|------------------|--------------------------------|
| --host | DEPLOY_HOST | | Remote host to deploy to |
| --user | DEPLOY_USER | | SSH user for remote host |
| --image | DEPLOY_IMAGE | app | Docker image name |
| --image | DEPLOY_IMAGE | copepod_app | Docker image name |
| --tag | DEPLOY_TAG | latest | Docker image tag |
| --platform | DEPLOY_PLATFORM | linux/amd64 | Docker platform |
| --ssh-key | SSH_KEY_PATH | | Path to SSH key |
| --container-name| CONTAINER_NAME | app | Name for the container |
| --container-port| CONTAINER_PORT | 3000 | Container port |
| --ssh-key | SSH_KEY_PATH | | Path to SSH key |
| --container-name| CONTAINER_NAME | copepod_app | Name for the container |
| --container-port| CONTAINER_PORT | 3000 | Container port |
| --host-port | HOST_PORT | 3000 | Host port |
| --env-file | ENV_FILE | .env.production | Environment file |
| --env-file | ENV_FILE | | Environment file |
| --build-arg | BUILD_ARGS | | Build arguments (KEY=VALUE) |

### Example Commands
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func LoadConfig() Config {
flag.StringVar(&config.ContainerName, "container-name", getEnv("CONTAINER_NAME", "app"), "Name for the container")
flag.StringVar(&config.ContainerPort, "container-port", getEnv("CONTAINER_PORT", "3000"), "Container port")
flag.StringVar(&config.HostPort, "host-port", getEnv("HOST_PORT", "3000"), "Host port")
flag.StringVar(&config.EnvFile, "env-file", getEnv("ENV_FILE", ".env.production"), "Environment file")
flag.StringVar(&config.EnvFile, "env-file", getEnv("ENV_FILE", ""), "Environment file")
flag.Var(&buildArgs, "build-arg", "Build argument in KEY=VALUE format (can be specified multiple times)")
flag.BoolVar(&showHelp, "help", false, "Show help message")

Expand Down

0 comments on commit a6cf633

Please sign in to comment.