flow
flow
WWasp-lang
Created by flow on 8/28/2024 in #đŸ™‹questions
Difficulty deploying via dockerfile to coolify
Trying to deploy my wasp app (which works via netlify/fly.io) to a self-hosted coolify. If I use the dockerfile generated by wasp build with no changes I get module not found errors. The dockerfile will execute, container will start and it processes through, connects to the DB using prisma schema but then: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/node_modules/wasp/dist/universal/validators.js' imported from /app/.wasp/build/server/scripts/validate-env.mjs at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:946:10) at defaultResolve (node:internal/modules/esm/resolve:1132:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:835:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) at link (node:internal/modules/esm/module_job:76:36) { code: 'ERR_MODULE_NOT_FOUND' } If I try to build remote - using a dockerfile similar to https://www.koyeb.com/tutorials/using-wasp-to-build-full-stack-web-applications-on-koyeb I cannot get the wasp build process to work due to it not finding the prisma client. Im kind of ambivalent to building locally then deploying or building remotely, but if anyone has tried to deploy to something other than a managed host using a dockerfile, some advice would be appreciated.
11 replies