[英]Serve static files for a nodeJs application in Elastic Beanstalk AWS
Which the different steps to do make serving static images possible in case of a nodeJs app without the need of using S3在不需要使用 S3 的 nodeJs 应用程序的情况下,哪些不同的步骤可以使提供静态图像成为可能
app.use(express.static('public'));
I tried some solutions but still doesn't work我尝试了一些解决方案但仍然不起作用
NB: I'm new in AWS, thanks for advance注意:我是 AWS 的新手,感谢提前
Follow the instructions as per the documentation below:按照以下文档的说明进行操作:
https://expressjs.com/en/starter/static-files.html https://expressjs.com/en/starter/static-files.html
You don't need any additional changes in Elastic Beanstalk to serve static files.您不需要在 Elastic Beanstalk 中进行任何其他更改来提供静态文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.