Packaging Docmost

Hi guys,
i’m trying to package docmost.
But I’m facing 3 majors problemes:

  1. App configuration is only based on env var.
    Can the install script push a .env template in install folder, then I have a custom script that load the .env in app memory then run pnpm start ?
    Because i’m not sure that nodejs by default load .env file in prod env.

  2. The app needs a redis. How can i install this efficiency ?

  3. LDAP is available but it needs to be set in the app.
    I guess that the conf is saved in postgresql.

Thank for help !

Hello! Lots of apps have a .env file (I say it’s the common way to do). If you add EnvironmentFile=__INSTALL_DIR__ in the systemd service it will be handled during its execution

For redis, there is a helper (you have to add redis-server in the deps).

You can have a look at GitHub - YunoHost-Apps/fittrackee_ynh: FitTrackee package for YunoHost 🚴 both for the .env and for redis (it’s a python package but the way of doing is the same)

1 Like

Thanks for reply !
Gonna check on this :slight_smile: