如何在prisma中使用环境变量
从这个文档中,Prisma cli 尝试从 prisma s3 下载二进制文件。但由于我的公司防火墙规则此下载被阻止,请遵循此 文档,我必须使用 PRISMA_ENGINES_MIRROR
变量更改源二进制文件位置。
要利用这个变量,我必须设置环境变量。我的构建环境就像ElasticBeanstalk,git推送后,构建就会开始。从现在开始,我无法在构建环境中配置环境变量。因此我考虑将 PRISMA_ENGINES_MIRROR 变量配置并写入 .env 文件并推送它们。
是否可以?如何通过 .env
使用这些变量?
如果有人有意见,请告诉我。
谢谢
From this document, Prisma cli try to download binaries from prisma s3. But as my corporate firewall rules this download was blocked, Following this document,I must change source binary file location by using PRISMA_ENGINES_MIRROR
variable.
to utilize this variable,I must set environment variables. my build environment is like ElasticBeanstalk,after git push, build will start. from now on,I couldn't configure env variables in build environment. so that I consider to configure and write PRISMA_ENGINES_MIRROR
variable to .env
files and push them.
Is it possible? and how can I utilize these variable by .env
?
If someone has opinion,please let me know.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过转到
“配置”>“Elastic BeanStalk”来配置 Elastic BeanStalk 中的环境变量。软件配置>>环境属性
您可以在环境属性中添加
PRISMA_ENGINES_MIRROR
,.env
将拾取它You can configure environment variables in Elastic BeanStalk by going to
Configuration > Software Configuration > Environment Properties
You can add
PRISMA_ENGINES_MIRROR
in Environment Properties and it will be picked up by.env