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

在linux部署报错cannot read property 'getUserInfo' of undefined #14

Open
LIBai11 opened this issue Jul 18, 2022 · 4 comments
Open

Comments

@LIBai11
Copy link
Contributor

LIBai11 commented Jul 18, 2022

项目部署在cent OS7.6(64位),使用node版本为14.16.0,使用pnpm安装依赖版本为7.5.1.安装后执行npm run publish报错.
dfd4bf379415dda8a9320a1b211257d
执行npm run start可以执行.
b64b9b5184a54f64bfa96465caf58d9
但是pm2 logs报错
a71c123aa139772cb84831a99b55fc0
请问这是什么情况?还望解疑,万分感谢!

@xeoshow
Copy link

xeoshow commented Jul 19, 2022

我们centos也是跑不起来,项目文档说明还是希望可以详细些,官方也可以来个QQ或微信群啥的~

@drawcall
Copy link
Member

Check out the middleware.auth module

@xeoshow
Copy link

xeoshow commented Jul 19, 2022

我们就是用的默认的视搭的代码,部署在centos,还没有做任何其他改变。
是否和mongodb配置不对有关?mongodb数据库有用户名/密码如何配置呢?谢谢

@xeoshow
Copy link

xeoshow commented Jul 20, 2022

@drawcall 我们需要给mongodb数据库配置用户名密码,请问需要如何调整配置文件呢?
看了下下面2个代码,应该是第二个截图对应的?第一个配置文件好像压根没啥用... 但第二个看url字段,不知如何配置用户名和密码。多谢多谢!~
f42c6f6e564d6e9a251519123d4a728
3f0acd1cdbf1bb4e335768b5c24482d

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