-
Notifications
You must be signed in to change notification settings - Fork 8
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
Properly set Pantheon environment variables: $_SERVER['BACKDROP_SETTINGS']['settings'] should be set instead of $_SERVER['BACKDROP_SETTINGS']['conf'] #58
Comments
@joelsteidl or @eric2pin wondering if either of you would like to test this. I was porting
Anything in |
@herbdool Happy to help but could use more direction on how to help. Are you just trying to make sure that your changes to settings.php and the way $_SERVER['BACKDROP_SETTINGS'] is set, which help with the pantheon_apachesolr port, still works as expected with the Pantheon env? |
@eric2pin yup. I don't think there are any issues with the PR but it would help to have a second set of eyes. Since yesterday I realized that there isn't likely anything that's being added to |
@eric2pin there were a few changes to settings to be made so I figured it would be better to put the separate PRs together into one branch #64 and then merge that into master. That will reduce the number of updates downstream people have to deal with. In the PR it links to which issues are addressed. Note that I've proposed the creation of settings.pantheon.php to match drop8 file of the same name: https://github.com/pantheon-systems/drops-8/blob/default/sites/default/settings.pantheon.php. |
@herbdool I pulled this into a Pantheon dev env clone of one of our production sites and just pasted in the following so my site could still run: if (file_exists(DIR . '/settings.my_site_settings.php')) { In the future I could easily change our settings file to settings.local.php so no changes would be necessary. So far I see that $_ENV['HASH_SALT'] is undefined. It looks like the index DRUPAL_HASH_SALT is defined and appears to be the salt value we're looking for. I suppose this could be something to do with my Pantheon config but I did spin up the site based on the Backdrop CMS Pantheon upstream. I'll continue poking around, but otherwise seems fine so far. |
I spun up a new site using the Backdrop Pantheon upstream too and when I look at There is a Just to be sure I made sure to create the site by going to backdropcms.org/demo |
You're correct, when I spin up from the Backdrop CMS upstream link, I get the salt in the HASH_SALT index. The sites I used as a base to test are a custom upstream (Backdrop CMS upstream + our custom code) and we probably selected "Drupal" as the framework somewhere along the way in Pantheon's custom upstream setup. |
Thanks @eric2pin. In that case, I'm leaning towards not addressing that edge case and assume that people are using the main approach. Though it wouldn't be hard to check if either are set. What do you think? Just to be sure, what you're seeing is |
Yes, what I'm seeing is $_ENV['DRUPAL_HASH_SALT']. Hard to say -- we're almost certainly an edge case but Pantheon itself for Backdrop CMS is in edge case territory as far as I know. It's super easy to check for both -- maybe until Pantheon has its own option for Backdrop CMS out-of-the-box it doesn't hurt to cover both options. |
Thanks @eric2pin I've updated it so it checks for both. Let me know if you notice anything else. Otherwise I think it's ready to merge. |
$_SERVER['BACKDROP_SETTINGS'] is set from $_SERVER['PRESSFLOW_SETTINGS'] but that is the old d7 variable. There's backdrop/backdrop#60 which added support for this.
Without this, we can't use
settings_get()
. With this it makes it easier to portpantheon_apachesolr
module from drop7.The text was updated successfully, but these errors were encountered: