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

Allow project subdomain to be configured. #40

Merged
merged 1 commit into from
Jul 8, 2019
Merged

Conversation

joehoyle
Copy link
Member

@joehoyle joehoyle commented Jul 5, 2019

This will also sanitize the name to be subdomain friedly.

Fixes #35.

This will also sanitize the name to be subdomain friedly.

Fixes #35.

$composer_json = json_decode( file_get_contents( getcwd() . '/composer.json' ), true );

if ( isset( $composer_json['extra']['altis']['modules']['local-server']['name'] ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought you had to check each stage of the array tree when using isset() so I've used null coalescing in most cases like this. If there're no warnings then TIL!

Copy link
Member

Choose a reason for hiding this comment

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

@joehoyle joehoyle merged commit edfb34c into master Jul 8, 2019
@joehoyle joehoyle deleted the configure-sub-domain branch July 8, 2019 11:28
@rmccue rmccue mentioned this pull request Sep 19, 2021
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.

Hostname fails if current dir has a .
3 participants