简体   繁体   English

如何部署不支持yeoman的有角度的应用程序

[英]How to deploy a angular app that isn't scaffolded with yeoman

I have a angular app, just a angular app so no nodejs or other backend is involved. 我有一个有角度的应用程序,只有一个有角度的应用程序,所以不涉及任何nodejs或其他后端。 I have a separate backend setup with an API. 我使用API​​进行了单独的后端设置。 My angular app communicates to the backend with the API. 我的角度应用程序通过API与后端通信。

Now when I want to put my angular app online, how do I do this? 现在,当我想将我的角度应用程序放在网上时,该怎么做? If I just put the html files online I get all kinds of errors (I already have a separate question for this matter, which is unresolved). 如果我只是将html文件放到网上,则会遇到各种错误(对此问题我已经有一个单独的问题,尚未解决)。 Deploying to heroku doesn't work because it isn't a nodejs app. 部署到heroku无效,因为它不是nodejs应用程序。

So how is this accomplished? 那么如何完成呢?

You can use an apache server or nginx to serve static content on a remote server. 您可以使用apache服务器或nginx在远程服务器上提供静态内容。 Personnaly I use Nginx, it doesn't require a lot of configuration (almost no configuration) to works. 我个人使用Nginx,它不需要很多配置(几乎不需要配置)即可工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM