Packaging "profilarr"

Hi everyone,
I’m trying to package profilarr, but this app is such a mess…
There is a lot of harcoded var in the app itself so I had to make a fork profilarr to correct some few problem.

The main problem is that app is composed of 2 differents app:

  • front-end in nodejs
  • backend in python

Even with my fork I still got an error:

  1. The page after the app is installed is white because it didn’t pass the SSO. But the problem is that vite.js is creating a SPA.
    So after building we only get a dist folder with some static assets and index.html.
    I tried some few things in nginx confi but nothing work.
    And i don’t really want to use npm dev because it’s not suposed to be run in prod.

  2. I will have to modify backend code also because the app was supposed to be run in docker so /backend url is hardcoded I think.

If anyone can give me some help, here is the PR: here.

Thanks !

Use patches like nextcloud_ynh/patches at master · YunoHost-Apps/nextcloud_ynh · GitHub

So the app installs but it’s not working?
Why using /tmp?

I’m gonna take a look on those patches.

Yes app is installing but not working. Got a white blank page when accessing url.

tmp is use to avoid a lot of rm to remove all unused files. I just copy backend and frontend.

@BowgartField

:thinking:


…out of the box.
But I didn’t install it under a path because of mismatches with internal routes.
Am I getting the problem right ?

You just installed it with my repo and under a custom domain ? not a path ?

:thinking:

From testing branch under a dedicated domain.

1 Like

Gonna take a look on this. Thanks !

And, AFAIR, the python3-venv package is missing from the apt packages to install (in the manifest).

I tried also to install under a path (=error page) and, so, moved it to a dedicated domain: it worked. Internal routes doesn’t seem to work when installed under a path.

Good point, it is working on my machine because I have this package installed.
I’m gonna fix this.

Yeah this package is a mess so probably a problem from inside.

White page ?

404 Error

1 Like

App is working.
Thanks for contributing :raising_hands: