Welcome Guest, Not a member yet? Register   Sign In
One .env File for Development and Production
#1

Hi There,

I have been using CI for years now and now trying my hands on CI4. It has a cool feature where environment variable can be set with .env file.

How can I use one env file for staging and production. I want the ability to change the environment and CI will pick up the relevant variables.

For example:

Production:
prod.aws.user=abc
prod.aws.password=sss

Staging:
staging.aws.user=tyuhd
staging.aws.password=kruryu

When the environment is changed, CI to pick up the respective credentials.

Please advise if this can be achieved in CI4

Regards
Raj
Reply


Messages In This Thread
One .env File for Development and Production - by rajsubhag - 04-12-2021, 08:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB