Sunday, October 31, 2021

[SOLVED] Why can't I find my express code at AWS EB'S EC2 instance?

Issue

I had to change minor code of webservice which is live at AWS EB in Seoul region. I tried to access EC2 instance of the EB environment using ssh but I can't not find any code!

my terminal screen shot after I connect to the instance: my terminal screen shot after I connect to the instance

I'm curious where are the codes and while I connect to the instance, the service was well running.

p.s. it's a Express project with MongoDB connected


Solution

Your currently running application code will be stored in:

/var/app/current

But its better to actually fix your code at the source and redeploy your application bundle if possible.



Answered By - Marcin