How to properly launch Angular Universal to live server

I have my website setup and working by modifying the universal-starter seed found here: https://github.com/angular/universal-starter and I have got my site working (rendering HTML) on the localhost node server, now I have a SSH connection and node installed, now I am here:

在这里输入图像描述

And I am not sure where I put my /dist files etc and then start the nodejs server.

NodeJS/npm installed shown here:

在这里输入图像描述


这实际上比看起来更容易,我只需要使用npm安装pm2,这样我就可以使nodejs进程保持不变,然后在.htaccess文件中使用RewriteEngine设置,我希望我的角度通用应用程序呈现它(它位于子域中文件夹),并确保端口是正确的,并完美链接,并在源代码中加载html,从而实现合适的SEO和索引

链接地址: http://www.djcxy.com/p/5304.html

上一篇: 在国家子文件夹中渲染

下一篇: 如何正确启动Angular Universal来运行服务器