Errors when trying to deploy on Render #4905
Replies: 3 comments 1 reply
-
|
Running Using this, the following settings work for me on Render:
|
Beta Was this translation helpful? Give feedback.
-
|
Facing this same issue pointed out here - #4826 and in discord https://github.com/orgs/adonisjs/discussions/4905#discussioncomment-14463073 |
Beta Was this translation helpful? Give feedback.
-
|
Found the temporary fix Change and changed/added these line in transport: {
targets: targets()
.pushIf(app.inTest, targets.pretty())
.pushIf(app.inDev, targets.file({ destination: 1 }))
.pushIf(app.inProduction, targets.file({ destination: 1 }))
.toArray()
},yet to find production issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling to get AdonisJS v6 to build and run on Render.
Build Command in Render
npm run buildStart Command in Render
npm run startPackage.json Scripts
I've tried a dozen different things, but in all scenarios I end up with one error or the other. The most common error is
I also run into scenarios where the server.js file is not in the build/bin folder.
I have a port env variable set to 0.0.0.0.
I also have NODE_ENV directly set to production, even though it should do it by default in Render.
I'm kind of lost at this point, and would appreciate any help that someone can offer. Has anyone else deployed to Render successfully?
Beta Was this translation helpful? Give feedback.
All reactions