Skip to content

Commit

Permalink
Merge pull request #22 from basecamp/remote-env-file
Browse files Browse the repository at this point in the history
Docs for env push
  • Loading branch information
dhh authored Sep 19, 2023
2 parents 3338fb8 + f9f7214 commit e3bfe92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ order: 3

# Commands

## Pushing environment files to the servers

Before you can deploy, you'll need to push env files to the servers. They will then be
included in the docker run commands.

You can do this by running:

```bash
$ kamal env push
```

If you create the files with `kamal envify`, they will automatically be pushed for you.

## Running commands on servers

#### Run command on all servers
Expand Down
2 changes: 2 additions & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ env:
REDIS_URL: redis://redis1:6379/1
```

**Note:** Before you can start the containers you need to push the env variables up to the servers.

## Using secret env variables

If you have env variables that are secret, you can divide the `env` block into `clear` and `secret`:
Expand Down

0 comments on commit e3bfe92

Please sign in to comment.