You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to standardize the enviroments more in terms of defaults, e.g. naming of databases, credentials, and so on as well as the handling of the webroot and the .env files.
With regard to the defaults for the databases and other credentials, such as backend credentials via bootstapping, it would be easiest if the user and password are always "reward" or "rewardenv". In addition, the database names should correspond to the enviroment name (reward_env_name).
This would be uniform for all enviroments and would be easier to remember.
In addition, handling the enviroments with the webroot is unattractive because, depending on the enviroment type,
sometimes the .env is contained in the actual project, sometimes it is outside the project or sometimes an .env contains both the application configuration and the reward configuration.
My suggestion would be to either rename the reward .env file to e.g. .env.reward or move it to the .reward directory in the project, so that the collision with the project .env files is avoided.
The text was updated successfully, but these errors were encountered:
These suggestions are also more than welcome. When I started this project, I wanted to be fully compatible with Warden. The webroot solution is also something we inherited from Warden, I strongly agree with the changes you suggested. I was also thinking about it previously, I planned to add support for environment files in the following order:
.reward/reward.yml (or something similar)
.reward/.env
.env
If the first or the second configuration file exists, then those could be used. If not, then go with the third one. This would keep backward compatibility with the already existing environments and also a step forward.
And I would also keep the webroot functionality as a fallback option, as I already saw projects where the git repo contained a web or src folder and the Magento code was placed in that directory.
Would it be possible to standardize the enviroments more in terms of defaults, e.g. naming of databases, credentials, and so on as well as the handling of the webroot and the .env files.
With regard to the defaults for the databases and other credentials, such as backend credentials via bootstapping, it would be easiest if the user and password are always "reward" or "rewardenv". In addition, the database names should correspond to the enviroment name (reward_env_name).
This would be uniform for all enviroments and would be easier to remember.
In addition, handling the enviroments with the webroot is unattractive because, depending on the enviroment type,
sometimes the .env is contained in the actual project, sometimes it is outside the project or sometimes an .env contains both the application configuration and the reward configuration.
My suggestion would be to either rename the reward .env file to e.g. .env.reward or move it to the .reward directory in the project, so that the collision with the project .env files is avoided.
The text was updated successfully, but these errors were encountered: