Skip to content

Commit

Permalink
Add to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
relistan committed Apr 17, 2015
1 parent e7e3b09 commit 00b1277
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ end
Development
-----------

Centurion supports a few features to make development easier when
building your deployment tooling or debugging your containers.

#### Overriding Environment Variables

Sometimes when you're doing development you want to try out some configuration
settings in environment variables that aren't in the config yet. Or perhaps you
want to override existing settings to test with. You can provide the
Expand All @@ -441,6 +446,24 @@ this functionality for production deployments. It will work, but it means that
the config is not the whole source of truth for your container configuration.
Caveat emptor.

#### Exporting Environment Variables Locally

Sometimes you need to test how your code works inside the container and you
need to have all of your configuration exported. Centurion includes an action
that will let you do that. It exports all of your environment settings for the
environment you specify. It then partially sanitizes them to preserve things
like `rbenv` settings. Then it executes `/bin/bash` locally.

The action is named `dev:export_only` and you call it like this:

```bash
$ bundle exec centurion -e development -p testing_project -a dev:export_only
$ bundle exec rake spec
```

It's important to note that the second line is actually being invoked with new
environment exported.

Future Additions
----------------

Expand Down

0 comments on commit 00b1277

Please sign in to comment.