thx / rap2-dolores

MIT License
610 stars 255 forks source link

serve -s ./build 可以后台运行吗? #60

Closed Haphets closed 6 years ago

Haphets commented 6 years ago

现在运行serve -s ./build 以后,ctrl+c就退出了,有什么方式可以后台启动运行

AnInputForce commented 6 years ago

不知道支不支持 nohub参数 也可以把.build 扔到nginx下,配置一个静态服务器,指向.build即可。

gzliudan commented 6 years ago

请问要怎样配置?

Bosn commented 6 years ago

本repo不提供运维技术支持。该issue和rap项目无关,closed。

后台运行可以参考nohup和pm2

xiaobingchan commented 4 years ago

serve -s ./build 就算你用了nohup 也不能保持后台启动的。。。。你应该 cd ./build && npm start 然后在用nginx设置 端口转发到3000端口就好 location / { proxy_pass http://localhost:8080/; }