0

I want to do the following with Ammonite:

set -a
source .my-env
docker-compose up -d

My Solution looks like:

  %("set", "-a")
  %("source", "./devops/it.env")
  %("docker-compose", ...)

The first 2 lines do not work, I get No such file or directory.

I tried different variations:

  %bash("set", "-a")
  %sh("set", "-a")
  %("bash", "set", "-a")

The commands work in bash.

How is this done with Ammonite correctly?

pme
  • 14,156
  • 3
  • 52
  • 95
  • 2
    Just a guess (since I don't use Ammonite): Since there are no executables named `set` and `source` in your path - after all, they are internal bash commands - Ammonite can not run them. – user1934428 Aug 05 '19 at 09:10
  • 2
    For the same reason `"source"` would not work - just use http://ammonite.io/#EnvironmentVariables to set env vars up in your script. – Mateusz Kubuszok Aug 06 '19 at 13:47

0 Answers0