简体   繁体   English

如何访问部署在aws elasticbeanstalk中的文件

[英]How to access files deployed in aws elasticbeanstalk

I have deployed node.js code on aws elasticbeanstalk creating a new environment.我已经在创建新环境的 aws elasticbeanstalk 上部署了 node.js 代码。 The app is successfully deployed.该应用程序已成功部署。 I want to access the files.我想访问这些文件。 I used ssh to the remote machine but the I can't find the code我在远程机器上使用了 ssh 但我找不到代码

Elastic Beanstalk places the deployed code in /var/app/current Elastic Beanstalk将已部署的代码放置在/var/app/current

Note that you shouldn't be making changes on the Elastic Beanstalk server directly. 请注意,您不应直接在Elastic Beanstalk服务器上进行更改。

Adding to the last answer, remember that you need to select enable SSH to your instances when launching application. 除了最后一个答案,请记住,启动应用程序时需要选择对实例启用SSH。 Else, you won't be able to SSH into any AWS Elastic Beanstalk instance. 否则,您将无法通过SSH进入任何AWS Elastic Beanstalk实例。

If you found this question but you're not using ssh, you could download the zip after clicking on a version in the console.如果你发现这个问题,但你没有使用 ssh,你可以在控制台中点击一个版本后下载 zip。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM