-
I've found out that it seems to be not possible to install node packages in /app/core and files can only persist in /app/data. in the data directory I have some predefined extensions ready (the app I am using is directus) and it would be awesome if I could use my custom js files during the app start. Unfortunately, I get an error (the reason should be what I already mentioned above)
npm notice Apr 29 10:48:16 "/app/data/extensions/endpoints/firebase/index.js" Apr 29 10:48:16 "/app/data/extensions/hooks/firebase/index.js" Apr 29 10:48:16 "code": "MODULE_NOT_FOUND", Apr 29 10:48:16 "code": "MODULE_NOT_FOUND", Apr 29 10:48:16 "message": "Cannot find module 'firebase-admin/app'\nRequire stack:\n- /app/data/extensions/hooks/firebase/index.js", Apr 29 10:48:16 "message": "Cannot find module 'jsonwebtoken'\nRequire stack:\n- /app/data/extensions/endpoints/firebase/index.js", Apr 29 10:48:16 "requireStack": [ Apr 29 10:48:16 "requireStack": [ Apr 29 10:48:16 "stack": Apr 29 10:48:16 "stack": Apr 29 10:48:16 "type": "Error", Apr 29 10:48:16 "type": "Error", Apr 29 10:48:16 - /app/data/extensions/endpoints/firebase/index.js Apr 29 10:48:16 - /app/data/extensions/endpoints/firebase/index.js Apr 29 10:48:16 - /app/data/extensions/hooks/firebase/index.js Apr 29 10:48:16 - /app/data/extensions/hooks/firebase/index.js Apr 29 10:48:16 Error: Cannot find module 'firebase-admin/app' Apr 29 10:48:16 Error: Cannot find module 'jsonwebtoken' Apr 29 10:48:16 Require stack: Apr 29 10:48:16 Require stack: Apr 29 10:48:16 Require stack: Apr 29 10:48:16 Require stack: Apr 29 10:48:16 [08:48:16.441] WARN: Cannot find module 'firebase-admin/app' Apr 29 10:48:16 [08:48:16.441] WARN: Couldn't register hook "firebase" Apr 29 10:48:16 [08:48:16.443] WARN: Cannot find module 'jsonwebtoken' Apr 29 10:48:16 [08:48:16.443] WARN: Couldn't register endpoint "firebase" Apr 29 10:48:16 [08:48:16.572] INFO: Loaded extensions: firebase, firebase Apr 29 10:48:16 [08:48:16.765] WARN: Missing driver definition for "firebase" auth provider. Apr 29 10:48:16 [08:48:16.765] WARN: Missing driver definition for "twitter" auth provider. Apr 29 10:48:16 [08:48:16.836] INFO: Server started at http://0.0.0.0:8055 Apr 29 10:48:16 ]How can I make it running?
-
Yes, that is a feature of Cloudron where /app/code is read-only.
/app/data is the right place for custom user configs, however you need to make sure to modify the app config file or environment variables to make sure it knows where to find your custom changes.
Check the Cloudron docs to see how that is done.
-
G girish moved this topic from Support on
-
Yes, that is a feature of Cloudron where /app/code is read-only.
/app/data is the right place for custom user configs, however you need to make sure to modify the app config file or environment variables to make sure it knows where to find your custom changes.
Check the Cloudron docs to see how that is done.
-
I've found this:
https://docs.cloudron.io/apps/directus/Example Link is not working:
https://github.com/directus/directus/blob/main/api/example.env -
G girish referenced this topic 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