Skip to content

how to set envVars in command alias #90

@evbo

Description

@evbo

Is there a way to set envVars for revolver? Here's my interpretation of the readme applied to a scenario where I want my dev server to run locally with dev only env vars:

addCommandAlias(
  "server-dev",
  "; project server" +
  "; set envVars in reStart := Map(\"aws_region\" -> \"us-east-1\")" +
  "; reStart"
)

but I cannot access those variables in any task that restart triggers, e.g. this fails:println(sys.env("aws_region"))

of course I can get this working simply by exporting manually, like:

export aws_region=us-east-1 && sbt server-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions