Passing the Healthcheck on custom app
-
@nebulon I decided to bite bullet and learn some basic node.js to build a basic web front-end.
Works fine on my local machine usingnode server.js
.
But hangs when I build and install the image to Cloudron.
Obviously down to me to debug what it doesn't like.
I'm looking through some other Cloudron apps onhttps://git.cloudron.io/explore
for clues and stuff to borrow.
But a lot there.-
Wondering if anyone has a suggestion for Cloudron app which has a more sophisticated, but not too sophisticated, example!!
-
My basic example uses :
// var url = require('url');
// var fs = require('fs');
// var formidable = require('formidable');
They're listed in package.json or package-lock.json.
Might those be causing a problem with the Cloudron install?
-
-
@timconsidine might be easier, if you push your current code to some public repository or so, to better guide you.
-
@timconsidine may not be required, but the expressjs framework is usually a solid option to be used. Cloudron itself and also surfer and the likes use that.
-
@nebulon said in Passing the Healthcheck on custom app:
the expressjs framework is usually a solid option to be used
Express looks good but I will learn this another day. I had already gone down a "manual code" direction, and didn't want to re-do it. I will probably produce a new version with Express later.
-
@nebulon said in Passing the Healthcheck on custom app:
if you push your current code to some public repository
I have solved the problems I was encountering. Phew.
Now in a basic working state. Not pretty but functional.I will share in case it can be useful to others or there is advice on how to do it better.
I tried to create a project on https://git.cloudron.io to upload
But I gotinvalid namespace
Is creating projects on git.cloudron.io restricted ? -
@timconsidine I have created a public repository at
https://git.firstoption.com/timconsidine/Cloudron-Pandoc-PDF-Builderhttps://git.cloudron.io/timconsidine/cloudron-pandoc-pdf-builder/
Feel free to use.
Let me know any errors or issues.I will look into making it a node express project later.
-
@timconsidine oooops, appears to be an issue when downloading.
Will fix that and advise
EDIT : there appears to be a problem downloading on first run. But it works on subsequent runs. For now, just press back in browser, return home, and run again if error screen appears. Will investigate further, but basically working with this work-around. May be an issue if processing a large document, may need some some onFinish type statements somewhere. -
@timconsidine said in Passing the Healthcheck on custom app:
Is creating projects on git.cloudron.io restricted ?
yes by default we limit new accounts to avoid spam. I have granted your gitlab account now more privileges to create projects.