Add site and url WordPress constants#116
Add site and url WordPress constants#116jacobarriola wants to merge 1 commit intoPilothouse-App:developfrom
Conversation
It would be easier to have these constants set, as most of the sites that spin up are existing, which have set urls in the `options` table. I don't know whether PH has a variable for the local url, but `{{site_name}}` is a start. The TLD (`.dev`) is probably problematic as well as the set protocol I have (`http`). Happy to get more information or open up a dialogue.
|
@jacobarriola I generally do a DB search/replace of the live URL to the local URL whenever I import a production database, but I can see how this change would be helpful in not requiring that step. Currently, in wpConfigAdditionsContent = helpers.populateTemplate(wpConfigAdditionsContent, {site_name: environment.currentSiteName});The object containing So that just leaves us to decide whether to default to HTTP or HTTPS. I think the choice is pretty clear that we should default to HTTPS. |
It would be easier to have these constants set, as most of the sites that spin up are existing, which have set urls in the
optionstable. I don't know whether PH has a variable for the local url, but{{site_name}}is a start. The TLD (.dev) is probably problematic as well as the set protocol I have (http). Happy to get more information or open up a dialogue.