Grocy - ERP Beyond your fridge
-
@girish I'd guess this is it:
https://github.com/grocy/grocy/pull/1380 -
What an awesome app!
-
I sorta skimmed past this before, but I think I have a usecase for this.
-
How do you get this to work in a LAMP app?
what I did was...
- extracted the zip file inside the public folder of a new LAMP app
- changed the permissions of everything to www-data (Cloudron)
I got a no permission to access this page (or something of that sort). Then, I..
- moved all content to the "home" directory of the LAMP app
- moved the contents of the "public" folder that was in the zip file to the "public" folder of the LAMP app.
Unable to run grocy: /vendor/autoload.php not found. Have you run Composer?
P.S. I'm trying to use a subdomain (xx.mydomain.com) and not the root domain if that makes any difference.
-
@humptydumpty Sound like a path issue. All the folders and files for Grocy are in the "home" folder of the LAMP app. Hence, the "vendor" folder is also in the "home" folder so that the "app.php" can successfully load the path "/vendor/autoload.php". Does that help?
-
@andreasdueren Did you fix that in the meantime? (Sorry for not reacting )
-
@RoboMod
that half-fixed things.(100% fixed, see below for details)What I did was move all folders/files to the home folder and moved the content of the "public" folder (the one that's in the Grocy zip) to the LAMP's public folder. I'm going to check the config.php in the /data folder for path issues. Did you disable (NGINX) url rewriting?
Edit: Actually, your solution @RoboMod fixed the issue. I forgot I had edited the config.php base url and once reverted back to its defaults. the login page loaded and it's all working as expected. Thank you!
// When running grocy in a subdirectory, this should be set to the relative path, otherwise empty // It needs to be set to the part (of the URL) AFTER the document root, // if URL rewriting is disabled, including index.php // Example with URL Rewriting support: // Root URL = https://example.com/grocy // => BASE_PATH = /grocy // Example without URL Rewriting support: // Root URL = https://example.com/grocy/public/index.php/ // => BASE_PATH = /grocy/public/index.php Setting('BASE_PATH', ''); // The base URL of your installation, // should be just "/" when running directly under the root of a (sub)domain // or for example "https://example.com/grocy" when using a subdirectory Setting('BASE_URL', '/');
Things to note for future reference:
- all files/folders go into the LAMP's home directory.
- copy over and rename config-dist.php into /data/config.php and tweak the settings like "week starts on Monday" but no need to edit the base path/url if using the domain's root or a subdomain.
- disable phpmyadmin per the doc instructions here
-
@micmc said in Grocy - ERP Beyond your fridge:
@yusf said in Grocy - ERP Beyond your fridge:
I can see a benefit for using it in small-scale industrial kitchens or perhaps in community kitchens but other than that, Β―_(γ)_/Β―
From the website:
Waste less!
Except time that is
Mmm, as far as I can see Cloudron can absolutely address TWO clients categories, which are BUSINESSES and FAMILIES, think about it so that app would just be fantastic to add for that utility, and that said even for business for lists of supply needs etc. ...
AndyYes, families! This is one of the main reasons I hope that Odoo might be supported on Cloudron: to help families co-ordinate.
I love that Grocy can suggest recipes according to one's inventory. Maybe it will prioritize according to use-by date.
-
Whats the status on this app? Would like to install it on my Cloudron as well.
-
Install it in a lamp app. Steps are in post above.
-
Any reason why an app was not made for it? Is it because of the missing LDAP connector?
-
@saikarthik not sure, thatβs above my pay grade.
-
@saikarthik said in Grocy - ERP Beyond your fridge:
Any reason why an app was not made for it?
Limited interest ? although it does have 19 votes, I guess.
More likely because it can be deployed through the available LAMP deployment.
But it seems many have a reluctance or resistance or unfamiliarity with doing this. -
@timconsidine said in Grocy - ERP Beyond your fridge:
More likely because it can be deployed through the available LAMP deployment.
But it seems many have a reluctance or resistance or unfamiliarity with doing this.Deploying it is easy enough but that's more maintenance. Cloudron team is not maintaining it like other apps on the app store. Could break.
-
@saikarthik said in Grocy - ERP Beyond your fridge:
Cloudron team is not maintaining it like other apps
Really ? I don't get that impression about the LAMP app. I have several deployments.
At the end of the day, @staff get to choose which apps they package, because yes, maintenance is important, and if Grocy is made into a packaged app, then that falls on them, with a finite resource. Seems like you want to shift the maintenance burden to them. Fair enough in some ways, but if they don't want to take it on, none of us have a right to moan about it, or be demanding.
If the app is so useful to you, I recommend it deploying it in LAMP, or building your own package and maintaining it. With no criticism of Cloudron, you could be waiting months or years for it to be an official app.
-
@timconsidine I think you misunderstood me a little. Anyway, I just wanted to know the reasons why it wasn't an app. Just good to know the issues that people faced deploying as a LAMP app and also how Cloudron team decides what app should be packaged. Chill Tim.