I’m trying to deploy an existing RedwoodJS app with Fly.io.
I have verified that I can create a new redwood app and deploy via fly launch
but when I fly launch
from my other app, I see this failure.
It probably goes without saying I do have a schema.prisma file defined and the redwood app is pretty boilerplate here. Nothing out of the ordinary.
The key failure is here:
Skipping database and Prisma client generation, no `schema.prisma` file found: `/app/api/db/schema.prisma`
Rest of the output here:
=> CANCELED [api_build 2/2] RUN yarn rw build api 9.8s
=> ERROR [web_build 2/2] RUN yarn rw build web 9.5s
------
> [web_build 2/2] RUN yarn rw build web:
#0 9.296 ❯ Generating Prisma Client...
#0 9.297 Skipping database and Prisma client generation, no `schema.prisma` file found: `/app/api/db/schema.prisma`
#0 9.300 ✖ Generating Prisma Client... [FAILED: Command failed with ERR_INVALID_ARG_TYPE:
#0 9.300 The "file" argument must be of type string. Received undefined]
#0 9.301
#0 9.313 ┌ Error ───────────────────────────────────────────────────────────────────────┐│ ││ TypeError [ERR_INVALID_ARG_TYPE]: Command failed with ││ ERR_INVALID_ARG_TYPE: ││ The "file" argument must be of type string. Received undefined
││ at new NodeError (node:internal/errors:371:5) ││ at validateString (node:internal/validators:119:11) ││ at normalizeSpawnArguments (node:child_process:503:3) ││ at Object.spawn (node:child_process:691:13) ││ at execa (/app/node_modules/execa/index.js:83:26) ││ at _Task.task [as taskFn] ││ (/app/node_modules/@redwoodjs/cli/dist/commands/buildHandler.js:73:33) ││ at _Task.run (/app/node_modules/listr2/dist/index.cjs:2049:35) ││ ││ ││ ││ Need help? ││ - Not sure about something or need advice? Reach out on our Forum ││ (https://community.redwoodjs.com/) ││ - Think you've found a bug? Open an issue on our GitHub ││ (https://github.com/redwoodjs/redwood) ││ - Here's your unique error reference to quote: ││ 'f2c0c856-66de-4cca-95c5-5aaba149fad7' ││ │└──────────────────────────────────────────────────────────────────────────────┘
------
Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/sh -c yarn rw build web]: exit code: 1