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

好像启动不了 #211

Open
MiChongs opened this issue May 4, 2024 · 3 comments
Open

好像启动不了 #211

MiChongs opened this issue May 4, 2024 · 3 comments

Comments

@MiChongs
Copy link

MiChongs commented May 4, 2024

Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "db.sqlite" at "file:/usr/local/NodeStatus/server/db.sqlite"
The database is already in sync with the Prisma schema.
Running generate... (Use --skip-generate to skip the generators)
�[2K�[1A�[2K�[GRunning generate... - Prisma Client
�[2K�[1A�[2K�[G✔ Generated Prisma Client (5.0.0 | library) to ./../../node_modules/.pnpm/@prism
[email protected][email protected]/node_modules/@prisma/client in 488ms
Database file location: file:/usr/local/NodeStatus/server/db.sqlite

[email protected] start /app/packages/nodestatus-server
node build/app.js
�[35m[2024-05-04T17:54:24.733] [FATAL] default - �[39mNo web password specified
/app/packages/nodestatus-server:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] start: node build/app.js
Exit status 1
2024-05-04T17:54:24: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2024-05-04T17:54:24: PM2 log: App [npm:0] starting in -fork mode-
2024-05-04T17:54:24: PM2 log: App [npm:0] online
[email protected] start
npm run app:server start
[email protected] app:server
pnpm --filter=nodestatus-server start
[email protected] prestart /app/packages/nodestatus-server
node scripts/init.js

@cokemine
Copy link
Owner

cokemine commented May 4, 2024

你是不是没有设置 WEB_PASSWORD 这个环境变量

@MiChongs
Copy link
Author

MiChongs commented May 5, 2024

你是不是没有设置 WEB_PASSWORD 这个环境变量

我是用宝塔Docker一键部署的,是不是需要额外设置

@cokemine
Copy link
Owner

cokemine commented May 5, 2024

参考 https://github.com/cokemine/nodestatus#environment 配置环境变量

我不知道宝塔是怎么部署Docker容器的,如果你用了 compose 文件可以直接修改 docker-compose.yml 这个文件添加环境变量,如果没有应该要在宝塔后台面板配置

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

2 participants