Set environment variables in CUBA Studio 7

Hi,

First, 7.0 looks amazing. I am on beta 2 now.

I’ve noticed that it is not using intelliJ run configurations so… how can I set environment variables for gradle to pass down to tomcat when it gets started?

I mainly need to set GOOGLE_APPLICATION_CREDENTIALS for testing.

thanks

1 Like

Hi Marc,

Thank you for encouraging words :slight_smile:

How did you do it before? As far as I know, the only way to pass an env variable to Tomcat is to specify it in its bin/setenv.* file.

1 Like

I never did it before! First time trying to use CUBA + Google Cloud.
I’ll mess around with bin/setenv.*
thanks for the tip!