Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #9: Get the docroot dir from env variable and add DOCROOT var on Taskfile. #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elvism-lullabot
Copy link
Collaborator

No description provided.

Comment on lines +42 to +43
// Get the docroot directory from the environment variable.
$docroot_dir = getenv('DOCROOT');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we talked in Slack, I thought I mentioned instead doing this by parsing out the docroot from composer.json. I actually had to do this as well over in Drainpipe:

https://github.com/Lullabot/drainpipe/pull/613/files#diff-7adbb32c269b786500345b2dc08d60e8f89e3366137646bfce85cb1cbaf5f5fdR40-R45

Is there a reason this needs to be customizable outside of composer.json? I'm totally open to it if there is, I'd just like to understand why.

include_once $bootstrap_path;
}
else {
print "bootstrap.inc file not found in the specified directory.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if we do this from composer.json, I like this. How about we print the bootstrap path too?

Suggested change
print "bootstrap.inc file not found in the specified directory.";
print sprintf("bootstrap.inc file not found at %s", $bootstrap_path");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants