Environment variables is not being set

circle.yml

#1

I try to set environment variables using the circle.yml file, however, they are not being read by my Laravel Application.
I have run printenv and I do not find any of the envrionment variables I have defined in circle.yml

any help or pointers that can lead me to the right direction is appreciated.

thanks


#2

Hi,

Can you paste a snippet here so we can see what’s wrong? Or if it’s a FOSS project, link to the repo?


#3

Did you figure this out? I am having the same problem.


#4

Hi @loganbfisher i have created a separate en file where i use the original variables but with the correct values for database credentials and app en and other information.

So in terminal i have used cp ~/project/.env.testing ~/project/.env and removed the environment section in circle.yml


#5