-
Notifications
You must be signed in to change notification settings - Fork 22
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
Allow setting HTTP_HOST directly via --uri option #195
Comments
I filed a PR at #196 that adds the option and documentation. I did not add any validation of the new option; do we validate other global options somewhere? |
@quicksketch
Just a thought. I appreciate that |
@quicksketch - any thoughts about the errors in the comment above? |
@quicksketch - I've found the cause of the issues in the comment above and suggested a change that fixes the error messages. Please also see my comments above regarding URL vs URI. |
@quicksketch - please see the suggestion. Having looked further at the documentation for drush, I think using
In Thanks |
Given that the lando testing environment defines urls for the test sites, it would probably also make sense to have a test for this options, probably using the |
Agreed with @quicksketch on 25th March that I can take over this PR to do the suggested changes. |
A new PR has been prepared against this issue:
This is largely based on the work of @quicksketch |
Are there use-cases for this new option outside of the |
I cannot think of any others though it's not beyond the realms of possibility that a custom command run using From your greater knowledge of core, are there any functional areas that are more prone to problems if Backdrop can't work out My preference is to leave in global for future-proofing reasons. |
Ok. I've left some comments/suggestions on the PR. |
@BWPanda - I've addressed the points in your comments. |
Thanks @yorkshire-pudding, I understand the global variable part properly now. Requested a few small changes, then should be good to go (I won't worry about changing the issue status). |
Thanks @BWPanda - changes completed |
Thanks @yorkshire-pudding, committed. Thanks also to @quicksketch for opening this issue and filing the initial PR. |
I'm using bee together with ddev and finding that bee can't figure out what the hostname should be.
I've set up my ddev command as follows:
When using a ddev command like
ddev bee uli
, I get back the output:The problem is bee doesn't know the URI of my site and it uses the hostname from the container. I can "fix" this by setting a
$base_url
insettings.php
, but I would find it preferable if I could set the URI as an option.I tried using
--site=$DDEV_PRIMARY_URL
, but the--site
option is intended to select a multisite, and does not do much of anything when used on a single-site installation.Proposed solution:
--uri
option similar to Drush: https://docs.drush.org/en/8.x/usage//usr/local/bin/bee/bee.php --uri=$DDEV_PRIMARY_URL
The text was updated successfully, but these errors were encountered: