We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
master分支,源码使用sqlite数据库,pnpm dev启动时报错
# 使用Sqlite DATABASE_URL="file:../data/wewe-rss.db" DATABASE_TYPE="sqlite"
报错信息如下:
apps/server dev: PrismaClientInitializationError: error: Error validating datasource `db`: the URL must start with the protocol `mysql://`. apps/server dev: --> schema.prisma:3 apps/server dev: | apps/server dev: 2 | provider = "mysql" apps/server dev: 3 | url = env("DATABASE_URL") apps/server dev: | apps/server dev: Validation Error Count: 1 apps/server dev: at r (/data/github/wewe-rss/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:113:2493) apps/server dev: at Proxy.onModuleInit (/data/github/wewe-rss/apps/server/src/prisma/prisma.service.ts:7:5) apps/server dev: at async Promise.all (index 0) apps/server dev: at callModuleInitHook (/data/github/wewe-rss/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/hooks/on-module-init.hook.js:43:5) apps/server dev: at NestApplication.callInitHook (/data/github/wewe-rss/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-application-context.js:223:13) apps/server dev: at NestApplication.init (/data/github/wewe-rss/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-application.js:100:9) apps/server dev: at NestApplication.listen (/data/github/wewe-rss/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-application.js:169:33) apps/server dev: at bootstrap (/data/github/wewe-rss/apps/server/src/main.ts:45:3)
The text was updated successfully, but these errors were encountered:
pnpm i pnpm run -r build pnpm deploy --filter=server --prod build cd build rm -r ./prisma mv prisma-sqlite prisma pnpm exec prisma generate export DATABASE_URL=file:../data/wewe-rss.db export DATABASE_TYPE=sqlite pnpm exec prisma migrate deploy node ./dist/main
Sorry, something went wrong.
No branches or pull requests
master分支,源码使用sqlite数据库,pnpm dev启动时报错
报错信息如下:
The text was updated successfully, but these errors were encountered: