本文介绍了部署后,EC2实例上的AWS Elastic Beanstalk应用程序文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Flask应用程序中使用AWS EB进行部署时出错.

I'm having errors in my deployment using AWS EB with my Flask application.

现在,我通过eb ssh进入EC2实例内部,需要探索应用程序已部署的源代码.

Now I'm inside the EC2 instance via eb ssh and need to explore the deployed source code of the application.

部署的应用程序文件夹在哪里?

Where is the deployed application folder?

推荐答案

将源代码压缩并放置在以下目录中:

The source code is zipped and placed in the following directory:

/opt/elasticbeanstalk/deploy/appsource/source_bundle

没有文件扩展名,但它是zip文件格式:

There is no file extension but it is in the zip file format:

[ec2-user@ip ~]$ file /opt/elasticbeanstalk/deploy/appsource/source_bundle
/opt/elasticbeanstalk/deploy/appsource/source_bundle: Zip archive data, at least v1.0 to extract

这篇关于部署后,EC2实例上的AWS Elastic Beanstalk应用程序文件夹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 03:28