Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build打包出来的文件dist,放到express里面怎么启动 #3

Open
maxiong1 opened this issue Aug 23, 2017 · 5 comments
Open

Comments

@maxiong1
Copy link

No description provided.

@netpi
Copy link
Member

netpi commented Aug 23, 2017

不好意思 没看懂问题

@maxiong1
Copy link
Author

我通过 npm build 生成的dist,我知道在dist文件里面执行npm start就可以看到效果,但是我想单独把dist文件拿出来,怎么启动它

@muzi131313
Copy link

应该是说服务端的部署吧

@maxiong1
Copy link
Author

嗯,不知道怎么弄了

@muzi131313
Copy link

muzi131313 commented Aug 28, 2017

先编译代码npm run build,然后使用pm2管理node进程 pm2 start server.js -i 4pm2介绍,最后使用nignx进行反向代理?还没有做过,目测应该是大概这个步骤。再详细的,就靠你去摸索了。搞完,可以分享一下。持续集成的话,有两个点可以get一下,docker和jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants