I can't find my Web app when I SSH to my AWS E

2019-01-23 19:19发布

I've set up SSH to my AWS Elastic Beanstalk instance using

eb ssh --setup

and can successfully SSH to my environment. But I can't see my Web application. When I am connected I find myself in an empty directory (ec2-user) and when I

cd /home

I just see

drwx------  3 ec2-user ec2-user 4096 Jan 15 21:37 ec2-user
dr-xr-xr-x 23 root     root     4096 Jan 15 21:03 ..
drwxr-xr-x  3 root     root     4096 Oct 22 23:29 .

Where is my Web application located?

3条回答
叼着烟拽天下
2楼-- · 2019-01-23 19:27

the content of your WAR is in /var/lib/tomcat8/webapps/ROOT resp. /usr/share/tomcat8/webapps/ROOT

查看更多
\"骚年 ilove
3楼-- · 2019-01-23 19:33

For anyone who doesn't want to wait for find /, I found my rails app at /var/app/ondeck before it successfully deployed and at /var/app/current after it succeeded.

查看更多
可以哭但决不认输i
4楼-- · 2019-01-23 19:40

Do $ sudo find / -name <insert main file name here> to find out.

For example:

$ sudo find / -name \*.php
/var/lib/tomcat8/webapps/ROOT/info.php
/var/lib/tomcat8/webapps/ROOT/index.php
/tmp/deployment/application/ROOT/info.php
/tmp/deployment/application/ROOT/index.php

Or, as you can see, in /var/lib/tomcat8/webapps/ROOT/

You will notice, it depends on the platform. Python for example:

$ sudo find / -name application.py
/opt/python/bundle/2/app/application.py
查看更多
登录 后发表回答