如何在surge.sh上部署Express应用程序

2024-01-05

I have Express app, and I have index.ejs file instead of index.html and I can't deply it on surge (page not found). I use 'surge' command in project directory and than I go to the domain where it was published but my project doesn't run there. How should I deploy it? Please help me, I need to do it right now my project


Surge.sh https://surge.sh/用于提供静态文件(html、css、media..等)。自从ejs是一个服务器端渲染模板引擎,无法使用 Surge.sh 提供服务。

注意:您可以将节点应用程序上传到 Heroku 进行托管。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在surge.sh上部署Express应用程序 的相关文章

随机推荐