-
Notifications
You must be signed in to change notification settings - Fork 448
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
docker部署启动报错 #102
Comments
@Kerwin1202 大佬好,docker部署的话,这个报错问题该怎么解决呢?
|
MongoDB的容器,或者本地服务开启了么 |
你是自己打包的镜像,是怎么打包的, 直接在 根目录下 |
@Kerwin1202 找到问题了,感谢大佬!确实用docker-compose会更好
|
@EvanDbg 感谢大佬,确实是没开,用docker-compose应该就不会有问题😂
|
大佬您好,这个项目我docker部署报如下错误;而且我在service/目录下面配置好了.env文件,想咨询下大佬这个该怎么解决,感谢大佬!
/app/node_modules/.pnpm/mongodb-connection-string-url@2.6.0/node_modules/mongodb-connection-string-url/lib/index.js:9
return (connectionString.startsWith('mongodb://') ||
^
TypeError: Cannot read properties of undefined (reading 'startsWith')
at connectionStringHasValidScheme (/app/node_modules/.pnpm/mongodb-connection-string-url@2.6.0/node_modules/mongodb-connection-string-url/lib/index.js:9:30)
at ConnectionString (/app/node_modules/.pnpm/mongodb-connection-string-url@2.6.0/node_modules/mongodb-connection-string-url/lib/index.js:85:34)
at parseOptions (/app/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/connection_string.js:204:17)
at MongoClient (/app/node_modules/.pnpm/mongodb@5.1.0/node_modules/mongodb/lib/mongo_client.js:46:50)
at __defProp (/app/build/index.js:9630:14)
at Object. (/app/build/index.js:10909:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/app/node_modules/.pnpm/@esbuild-kit+cjs-loader@2.4.2/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
Node.js v18.16.0
ELIFECYCLE Command failed with exit code 1.
The text was updated successfully, but these errors were encountered: