Fastify does not work on custom apps.
-
I tried to deploy a custom app that a made in fastify (nodejs) build with ESBuild to keep everything in a single file. But an application build with fastify does not complete the health check.
const fastify = require('fastify')(); fastify.get('/', async (request, reply) => { return 'Hello, World!'; }); const start = async () => { try { await fastify.listen(3000); console.log('Server is running on port 3000'); } catch (err) { console.error(err); process.exit(1); } }; start();Does any one already deploy a backend api app made with Fastify to cloudron?
-
I am no fastify expert, but the Cloudron healthcheck (defaulting to /) expects a 2hundred something (so like 200, 201, ...) http status code to let is succeed.
Do you see your route handler being hit every 10seconds for a start and does that route handler reply with a 200 if you just return a string from the function?
-
G girish moved this topic from Support on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login