We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Try to execute any cli command with yii utility. Do not pass env variable.
yii
env
As per following line of code in yii file, It should use production environment.
define('YII_ENV', getenv('env') ?? 'production');
It is using testing environment. Actually getenv('env') is evaluating to false which is not allowing to return 'production' string in YII_ENV.
getenv('env')
YII_ENV
The text was updated successfully, but these errors were encountered:
How do you execute the command?
Sorry, something went wrong.
yii cycle/schema/rebuild it is referring to testing database. However I was expecting it to use production.
yii cycle/schema/rebuild
Got it. I confirm the issue. Will fix that.
I've fixed that in application templates and demo:
define('YII_ENV', getenv('env') ?: 'production');
Please fix in your app as well.
samdark
No branches or pull requests
What steps will reproduce the problem?
Try to execute any cli command with
yii
utility. Do not passenv
variable.What is the expected result?
As per following line of code in
yii
file, It should use production environment.What do you get instead?
It is using testing environment. Actually
getenv('env')
is evaluating to false which is not allowing to return 'production' string inYII_ENV
.Additional info
The text was updated successfully, but these errors were encountered: