Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't find my Web app when I SSH to my AWS Elastic Beanstalk instance

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?

like image 436
orome Avatar asked Jan 15 '15 21:01

orome


2 Answers

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
like image 56
Nick Humrich Avatar answered Sep 28 '22 05:09

Nick Humrich


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.

like image 34
Camden Narzt Avatar answered Sep 28 '22 07:09

Camden Narzt