Environment Variable to set path of the file

How to set the path for the file in the environment variable of the App platform. Do we need to specify use Component-Specific Variables. My file is in base directory of the project with the name service-account.json . I know how to do it in droplet but app platform is different. I could not find a way to do it in app platform?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

👋🏼 @sbansal793

Your git repo is cloned to /workspace. This is also where your code will be located at runtime. Your app is also started with the current working directory of /workspace.

Depending on how your code is set up, you can either use the path ./service-account.json or /workspace/service-account.json.

Is this what you meant?