Skip to content

Commit

Permalink
fly launch will use machines when able
Browse files Browse the repository at this point in the history
it will  use machines unless there are statics in the config, the developer says they will use statics, or --force-nomad is sent
  • Loading branch information
tvdfly authored and dangra committed Jan 25, 2023
1 parent 8b03d91 commit c4717e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/command/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ func determineAppConfig(ctx context.Context, envFromFlags []string, primaryRegio
}

cfg.AppName = basicApp.Name
} else {
// FIXME: don't do this for now, until parse config know

}

if len(envFromFlags) > 0 {
Expand Down
2 changes: 2 additions & 0 deletions internal/command/launch/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func run(ctx context.Context) (err error) {
if err != nil {
return err
}
ctx = app.WithName(ctx, cfg.AppName)
} else {
fmt.Fprintln(io.Out, "An existing fly.toml file was found")
}
Expand Down Expand Up @@ -316,6 +317,7 @@ func run(ctx context.Context) (err error) {
}

appConfig.AppName = createdApp.Name
ctx = app.WithName(ctx, appConfig.AppName)

if srcInfo != nil {

Expand Down

0 comments on commit c4717e4

Please sign in to comment.