如何在您的应用程序中获得Elastic Beanstalk应用程序版本? [英] How can you get the Elastic Beanstalk Application Version in your application?

查看:76
本文介绍了如何在您的应用程序中获得Elastic Beanstalk应用程序版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望能够在我们的PHP代码中检索Elastic beantalk应用程序的版本.我看不到EB在任何服务器配置文件中将其传递给我们,我觉得这很奇怪.还有其他人知道我们怎么可能得到这个吗?

We want to be able to retrieve the elastic beanstalk application version in our PHP code. I don't see that EB passes it to us in any server configuration files, which I find it strange. Does anyone else know how we might be able to get this?

推荐答案

至少对于Docker容器-您可以使用存储在/opt/elasticbeanstalk/deploy/manifest中的信息.

At least for Docker containers - you can use the information stored in /opt/elasticbeanstalk/deploy/manifest.

这篇关于如何在您的应用程序中获得Elastic Beanstalk应用程序版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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