Skip to content

Commit

Permalink
fix: set application environment when running ace commands
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 19, 2020
1 parent 4d03258 commit 246b962
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ignitor/Ace/AppCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export class AppCommands {
*/
public async handle (argv: string[]) {
await this.ensureBuildRoot(argv[0])

this.bootstrapper.setup()
this.bootstrapper.application.environment = 'console'

const manifest = new this.ace.Manifest(this.buildRoot)
const kernel = new this.ace.Kernel(this.bootstrapper.application)
Expand Down
1 change: 1 addition & 0 deletions src/Ignitor/Ace/CoreCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class CoreCommands {
}

this.application = new Application(this.appRoot, new Ioc(), rcContents, {})
this.application.environment = 'console'
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Ignitor/Ace/GenerateManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class GenerateManifest {
await this.ensureBuildRoot()

this.bootstrapper.setup()

const application = this.bootstrapper.application
application.environment = 'console'

const commands = application.rcFile.commands

/**
Expand Down

0 comments on commit 246b962

Please sign in to comment.