Update standalone authored by bgm's avatar bgm
......@@ -57,33 +57,40 @@ Things to consider:
## Using composer
Directories:
```
mkdir /var/www/standalone/
cd /var/www/standalone/
composer config extra.enable-patching true
composer config minimum-stability dev
composer require civicrm/civicrm-core
composer require civicrm/civicrm-packages
cd /var/www/
git clone https://github.com/mlutfy/civicrm-standalone standalone
cd standalone
composer install
```
Apply this patch: https://github.com/civicrm/civicrm-core/pull/22227
Directories:
And then change some permissions:
```
cd /var/www/standalone/
# Keeping smarty files outside the public webroot
mkdir templates_c
chgrp www-data templates_c
chmod g+w templates_c
# Some uploads are assumed to be publicly accessible, I think?
mkdir web/upload
chgrp www-data upload
chmod g+w upload
```
Old notes, the initial composer setup was:
```
composer config extra.enable-patching true
composer config minimum-stability dev
composer require civicrm/civicrm-core
composer require civicrm/civicrm-packages
```
Presumably we will want some sort of composer template, so that people can also build their own composer project. I created the `civicrm-standalone` git repo mostly to package the `index.php` and help setup the directories.
## civicrm.settings.php
Since the installer does not work, generate manually:
......
......