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

几点问题 #72

Open
zsj1029 opened this issue Mar 31, 2020 · 8 comments
Open

几点问题 #72

zsj1029 opened this issue Mar 31, 2020 · 8 comments

Comments

@zsj1029
Copy link

zsj1029 commented Mar 31, 2020

1、本地 yarn run dev 访问页面一直加载到无响应错误 node记录 发起请求 /api/settings

确认数据库连接正确,yarn build 之后 start 是可以跑起来

2、(node:24989) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead

每次打包的错误信息,这是哪个依赖的警告信息没找到

@zsj1029
Copy link
Author

zsj1029 commented Mar 31, 2020

经过测试,如果yarn build 之后 start跑起来
再去yarn run dev 就可以了,但是端口号固定9000了,第一次dev端口随机的

@eshengsky
Copy link
Owner

如果发生端口随机,说明9000端口被占用了,可能是上一次node进程没有正常退出。

@beclass
Copy link

beclass commented Apr 15, 2020

请教下,线上yarn run build 之后,yarn start启动没问题。但是pm2 start pm2.json后,pm2 logs 0查看,就报错:
image
啥问题呢

@eshengsky
Copy link
Owner

@beclass 你的node版本是多少?

@beclass
Copy link

beclass commented Apr 15, 2020

@eshengsky v12.16.2

@beclass
Copy link

beclass commented Apr 15, 2020

pm2启动报错 (ಥ﹏ಥ)
image

@eshengsky
Copy link
Owner

升级下pm2试试

@beclass
Copy link

beclass commented Apr 29, 2020

这样没问题
pm2 start --name iblog yarn -- start

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