example apps in packaging tutorial not building / installing
-
Hi all, I'd like to package a small node app for personal use. I'm following the packaging tutorial but I can't get the example apps to install.
Steps taken
- install the cloudron CLI
- logged onto my server
- prove it's logged in by listing already installed apps
- clone the example TS repo https://git.cloudron.io/docs/tutorial-typescript-app
- hop into the repo directory
- run
cloudron install - get a HTTP error
$ cloudron install No build detected. This package will be built on the server. Location: tutorial Failed to install app: 400 message: "incorrect mime type. expecting application/json"Am I missing something or has some part of the process changed since the documentation was written?
Any insights greatly appreciated!
-
Hello @aaaaargzombies and welcome to the Cloudron Forum
I have to apologize.
The tutorial repository is very much out of date.If you pull the repo again and checkout the branch
fix/buildit should work.
When thefix/buildbranch was already merged https://git.cloudron.io/docs/tutorial-typescript-app/-/merge_requests/1 you can simply pull the master branch and it should work. -
Thanks for the speedy response. Sadly that didn't fix my issue, so assuming it should work I did some poking around to see what might be the cause of the rejected mime type. TLDR I'm on version
9.0.17and should try upgrading.More detailed explanation if anyone finds this topic by searching in the future, it looks like json is being enforced here
https://git.cloudron.io/platform/box/-/blob/v9.0.17/src/server.js?ref_type=tags#L268
but the CLI sends a multipart form, so it can attach the tar bundled app here
https://git.cloudron.io/platform/cloudron-cli/-/blob/master/src/actions.js?ref_type=heads#L699
that's cleared up in the later version
9.1.0https://git.cloudron.io/platform/box/-/blob/v9.1.0/src/server.js?ref_type=tags#L275
Hopefully that will resolve my issue

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