Update standalone authored by bgm's avatar bgm
......@@ -29,6 +29,7 @@ Things to consider:
* [x] How do we get the CSS/JS assets to be loaded in the HEAD? (c.f. templates/CRM/common/standalone.tpl)
* [ ] Get the CiviCRM menu to display
* [ ] CiviCRM dashboard has an AngularJS error
* [ ] On the `/civicrm/admin` page, the links are missing the leading `/`
* [ ] Session handling? user management?
* [x] Making clean URLs work? (c.f. web/index.php, `$_SERVER['REQUEST_URI']`)
......@@ -104,14 +105,15 @@ cp vendor/civicrm/civicrm-core/templates/CRM/common/civicrm.settings.php.templat
And then edit and set things manually:
* UF = Standalone
* civicrm_root = ..
* UF = `Standalone`
* `$civicrm_root = '/var/www/standalone/vendor/civicrm/civicrm-core/';`
also add these settings:
```
$civicrm_setting['domain']['customFileUploadDir'] = '/web/upload';
$civicrm_paths['civicrm.packages']['path'] = '/var/www/standalone/vendor/civicrm/civicrm-packages';
$civicrm_setting['domain']['userFrameworkResourceURL'] = 'https://civi.example.org/assets/civicrm/core';
```
(how does Drupal8 handle that?)
......@@ -124,11 +126,3 @@ Copied `sql/civicrm.mysql` from a Drupal8 codebase, then:
cat vendor/civicrm/civicrm-core/sql/civicrm.mysql | mysql -u civitest -p civitest
cat vendor/civicrm/civicrm-core/sql/civicrm_generated.mysql | mysql -u civitest -p civitest
```
and then in mysql:
```
-- probablement pas nécessaire:
-- insert into civicrm_contact (organization_name, contact_type, display_name) values ('Test Org', 'Organization', 'Test Org');
insert into civicrm_setting (name, value, domain_id, is_domain) values ('installed', 'i:1;', 1, 1);
```