Skip to content

Commit

Permalink
Show initial region at init
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Nov 3, 2020
1 parent c3bd5d5 commit 49f54eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/resource_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ func (client *Client) CreateApp(name string, orgId string) (*App, error) {
config {
definition
}
regions {
name
code
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ func runInit(commandContext *cmdctx.CmdContext) error {
return err
}

fmt.Printf("App will initially deploy to %s (%s) region\n\n", (*app.Regions)[0].Code, (*app.Regions)[0].Name)
if commandContext.ConfigFile == "" {
newCfgFile, err := flyctl.ResolveConfigFileFromPath(commandContext.WorkingDir)
if err != nil {
Expand Down

0 comments on commit 49f54eb

Please sign in to comment.