Skip to content
Permalink
Browse files

add development config overrides to `up start`

  • Loading branch information...
tj committed Jan 27, 2018
1 parent 973a529 commit 270ddb91a5ba8b74ee33589866acb158835189e9
Showing with 19 additions and 0 deletions.
  1. +15 −0 docs/04-configuration.md
  2. +4 −0 internal/cli/start/start.go
@@ -633,6 +633,21 @@ Currently the following properties may be specified at the stage level:
- `lambda`
- `proxy.command`

For example you may want to override `proxy.command` for development, which is the env `up start` will also use:

```json
{
"name": "app",
"stages": {
"development": {
"proxy": {
"command": "node app.js --something here"
}
}
}
}
```

## Ignoring Files

Up supports gitignore style pattern matching for omitting files from deployment. The following files are loaded in sequence:
@@ -41,6 +41,10 @@ func init() {
return errors.Wrap(err, "initializing")
}

if err := c.Override("development"); err != nil {
return errors.Wrap(err, "overriding")
}

h, err := handler.FromConfig(c)
if err != nil {
return errors.Wrap(err, "selecting handler")

0 comments on commit 270ddb9

Please sign in to comment.
You can’t perform that action at this time.