Where does elastic beanstalk t2 server store my node.js app files?

后端 未结 3 1589
清歌不尽
清歌不尽 2021-01-30 03:07

From an architecture perspective I\'m trying to get a better understand of how and where files deployed to eb (t2) server are stored.

I see some .zip files in s3 that sh

相关标签:
3条回答
  • 2021-01-30 03:37

    /var/app/current may be outdated. It doesn't exist on my instance.
    As said there I can't find my Web app when I SSH to my AWS Elastic Beanstalk instance, for python the app is in /opt/python/bundle/2/app/
    Otherwise use find to search for the location (look at the link).

    0 讨论(0)
  • 2021-01-30 03:44

    The top answer seems to be still working in November of 2020 for node app (nuxt app in my case)

    /var/app/current
    
    0 讨论(0)
  • 2021-01-30 03:51

    It's in the /tmp/deployment/application folder during deployment and the moved to /var/app/current afterward.

    In case you search them, the node logs are in /var/log/nodejs/nodejs.log and the application will bind to 8081 no matter what PORT environment variable you set in the Environment Variables in the console.

    0 讨论(0)
提交回复
热议问题