docksal / boilerplate-drupal8

[ARCHIVED] Drupal 8 boilerplate project powered by Docksal
https://docksal.io
68 stars 60 forks source link

DOCROOT variable not available in custom command #22

Closed opdavies closed 6 years ago

opdavies commented 6 years ago

If exec_target is set to cli, the $DOCROOT variable is not available.

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.

achekulaev commented 6 years ago

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.