弹性 beanstalk t2 服务器在哪里存储我的 node.js 应用程序文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28245224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where does elastic beanstalk t2 server store my node.js app files?
提问by Justin
From an architecture perspective I'm trying to get a better understand of how and where files deployed to eb (t2) server are stored.
从架构的角度来看,我试图更好地了解部署到 eb (t2) 服务器的文件的存储方式和位置。
I see some .zip files in s3 that show when I upload something via the eb interface, though how/where exactly does this get end up on my ec2(t2) server?
我在 s3 中看到一些 .zip 文件,当我通过 eb 接口上传某些东西时,这些文件会显示出来,尽管这最终是如何/在我的 ec2(t2) 服务器上得到的?
回答by Manuel Darveau
It's in the /tmp/deployment/applicationfolder during deployment and the moved to /var/app/currentafterward.
它/tmp/deployment/application在部署期间位于文件夹中,/var/app/current之后移动到。
In case you search them, the node logs are in /var/log/nodejs/nodejs.logand the application will bind to 8081no matter what PORT environment variable you set in the Environment Variables in the console.
如果您搜索它们,节点日志会在,/var/log/nodejs/nodejs.log并且8081无论您在控制台的环境变量中设置什么 PORT 环境变量,应用程序都将绑定到。
回答by M. Riché
/var/app/currentmay be outdated. It doesn't exist on my instance.
As said there I can't find my Web app when I SSH to my AWS Elastic Beanstalk instance, for python the app is in /opt/python/bundle/2/app/
Otherwise use findto search for the location (look at the link).
/var/app/current可能已经过时。它在我的实例中不存在。
如前所述,当我通过 SSH 连接到我的 AWS Elastic Beanstalk 实例时,我找不到我的 Web 应用程序,对于 python,该应用程序位于/opt/python/bundle/2/app/
否则用于find搜索位置(查看链接)。

