-
Notifications
You must be signed in to change notification settings - Fork 65
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
Not able to set Database credentials #3
Comments
That's intentional - these are using the existing OpenShift Environment variables: |
I already had a laavel app at my localhost. So I pushed it up with the .openshift directory. |
Right, but why aren't you able to set database credentials? The QuickStart supports setting DB_USERNAME, DB_PASSWORD, etc by checking for the DB_USERNAME prior to checking for OPENSHIFT_MYSQL_USERNAME. Feel free to set these for local development or remote development. I wouldn't recommend it, but if you really want to duplicate the pre-existing OpenShift environment variables feel free to replace lines 33-39 in the deploy action hook:
Then, replace lines 54-57:
By doing this, you're just using an environment variable to create an environment variable with the same value. The database environment variables are only used by Laravel in the config file. Some variables, like APP_ENV, tend to get used elsewhere. |
Alright. Thanks. |
The deploy hook is not setting DB_DATABASE, DB_USERNAME, etc. It only sets the driver.
The text was updated successfully, but these errors were encountered: