Tuesday, June 07, 2022

Re: [help wanted] productivity/monica initial setup needs some handling

attached patch which updates README and also installs it

diff --git a/productivity/monica/Makefile b/productivity/monica/Makefile
index 2b0a16b7b99..845ba8aa1fc 100644
--- a/productivity/monica/Makefile
+++ b/productivity/monica/Makefile
@@ -3,6 +3,7 @@ COMMENT = self hosted personal CRM system
CATEGORIES = productivity

VERSION = 3.7.0
+REVISION = 0
PKGNAME = monica-${VERSION}

MASTER_SITES = https://github.com/monicahq/monica/releases/download/v${VERSION}/
diff --git a/productivity/monica/pkg/PLIST b/productivity/monica/pkg/PLIST
index d9600c56c9e..46becc63ca6 100644
--- a/productivity/monica/pkg/PLIST
+++ b/productivity/monica/pkg/PLIST
@@ -717,7 +717,7 @@ www/monica/app/ViewHelpers/ContactHelper.php
www/monica/artisan
www/monica/bootstrap/
www/monica/bootstrap/app.php
-@mode 775
+@mode 770
@owner www
@group www
www/monica/bootstrap/cache/
@@ -20335,3 +20335,5 @@ www/monica/vendor/xantios/mimey/tests/src/MimeMappingGeneratorTest.php
www/monica/vendor/xantios/mimey/tests/src/MimeTypesTest.php
www/monica/webpack.mix.js
www/monica/yarn.lock
+@cwd ${LOCALBASE}
+share/doc/pkg-readmes/${PKGSTEM}
diff --git a/productivity/monica/pkg/README b/productivity/monica/pkg/README
index f99d1e4a095..40b1308f129 100644
--- a/productivity/monica/pkg/README
+++ b/productivity/monica/pkg/README
@@ -2,10 +2,23 @@
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

-Configuration file
-==================
+Configuration and setup
+=======================

-The configuration file for monica is ${LOCALSTATEDIR}/www/monica/.env .
+The configuration file for monica is ${LOCALSTATEDIR}/www/monica/.env which
+should be configure according to the upstream documentation at
+https://github.com/monicahq/monica/blob/main/docs/installation/providers/generic.md
+
+The initial setup should be done as follows:
+
+$ cd ${LOCALSTATEDIR}/www/monica && \
+ su -s /bin/ksh www -c "${MODPHP_BIN} artisan setup:production -v"
+
+Monica sets up absolute paths during the above setup, which can cause issues
+when using a web server, such as httpd(8) or nginx, which run in a chroot
+inside /var/www/. To work around this issue, create a relative symlink such as:
+
+$ ln -s .. /var/www/var/www

Exposing a webserver
====================

No comments:

Post a Comment