.env文件中的GOLAND Environment Vars [英] GOLAND Environment Vars in .env file

查看:696
本文介绍了.env文件中的GOLAND Environment Vars的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以在这样的命令下运行GoLand Run之前告诉我如何导出环境变量:

Could anyone say me how to export environment vars before running GoLand Run" with such command:

source .env

.env文件:

export MY_VAR="Some value"

是的,我知道我可以使用环境变量"在运行配置中定义所有变量,但是这也是错误的解决方案,因为我将所有变量存储在bash文件中.

Yes I know, that I can define all vars in run config using "Environment variables", but it is too, em... bad solution, as I store all vars in bash file.

推荐答案

有一个为此目的而构建的插件.它可以导入.env.json.yaml.

There is a plugin built for this purpose. It can import.env ,.json and .yaml.

https://plugins.jetbrains.com/plugin/7861-envfile

这篇关于.env文件中的GOLAND Environment Vars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆