Closed opdavies closed 6 years ago
If exec_target is set to cli, the $DOCROOT variable is not available.
exec_target
cli
$DOCROOT
I've tested it with a super simple command:
#!/usr/bin/env bash #: exec_target = cli echo $DOCROOT
This results in no output.
However, just this does:
#!/usr/bin/env bash echo $DOCROOT
DOCROOT is defined in my .docksal/docksal.env file. Other variables such as $PROJECT_ROOT are fine.
DOCROOT
.docksal/docksal.env
$PROJECT_ROOT
Thanks for the report. Closing this one in favor of https://github.com/docksal/docksal/issues/515 Let's continue there. I'll give a workaround hint and explain why it is not as bad.
If
exec_target
is set tocli
, the$DOCROOT
variable is not available.I've tested it with a super simple command:
This results in no output.
However, just this does:
DOCROOT
is defined in my.docksal/docksal.env
file. Other variables such as$PROJECT_ROOT
are fine.