【发布时间】:2020-01-31 04:59:38
【问题描述】:
我对此很陌生,我正在按照本教程 (https://hackernoon.com/start-to-finish-deploying-a-react-app-on-digitalocean-bcfae9e6d01b) 练习通过在 digitalocean 中的 create-react-app 部署我的标准创建的应用程序。
在运行 [pm2 serve build] 时显示:
pm2 serve build
[PM2] Applying action restartProcessId on app [static-page-server-8080](ids: 0)
[PM2] [static-page-server-8080](0) ✓
[PM2] Process successfully started
[PM2] Serving /home/carles/build on port 8080
但在提到的端口上什么也看不到。这是我在运行 [pm2 list] 时得到的:
App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├─────────────────────────┼────┼─────────┼──────┼─────┼─────────┼─────────┼────────┼─────┼────────┼────────┼──────────┤
│ static-page-server-8080 │ 0 │ 3.3.1 │ fork │ N/A │ errored │ 0 │ 0 │ 0% │ 0 B │ carles │ disabled │
在本教程的第 3 点之前一切正常。任何想法如何使这项工作?我感谢您的帮助! 谢谢!!
【问题讨论】:
标签: deployment pm2