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

Add support for Platform.sh #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AaronFeledy
Copy link

Resolves #2

Platform.sh allows a user to create their own environments with arbitrary names. It also allows a user to define the type of environment that it is (development, staging, production). The names and types are available in environment variables. I opted to have getEnvironment() always return the user-defined environment name and introduce a new getEnvironmentType() method to the PlatformSh class to be used by isProduction() and the like to get the type of environment.

Neither Lando nor DDEV supply the environment type variable, so I defaulted to "local" when it is not present.

@AaronFeledy AaronFeledy requested a review from davereid as a code owner July 1, 2023 22:44
@AaronFeledy AaronFeledy force-pushed the platformsh branch 2 times, most recently from b833432 to b793418 Compare July 1, 2023 23:01
@AaronFeledy
Copy link
Author

@davereid The code climate action won't be able to complete successfully because CC_TEST_REPORTER_ID will be empty since secrets aren't available to PRs coming from a forked repo.

@AaronFeledy AaronFeledy mentioned this pull request Apr 19, 2024
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.

Support Platform.sh
1 participant