Skip to content

How to set environment variables in the deployed Runpod based on .env file? #293

@AWolf81

Description

@AWolf81

Is it possible to set the env. variables during flash deploy?

Something like flash deploy --env production --env-file .env or similar? Is it a planned feature?

I've seen that the .env file is excluded from the artifacts by default PR #280, that's good and I understand it. It's that the .env file is not readable in the Runpod artifacts.

But what is the right way to use env. variable in the deployed Runpod? Do I have to add my env. variables manually in the Runpod UI or with a shell script?

I think I'll do it with a shell script for now.
That's better than doing it manually but it might be a feature worth to add to flash directly.

Thanks for creating the flash tool. I really like it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions