Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 1,258
    • Issues 1,258
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • DevelopmentDevelopment
  • CiviCRM CoreCiviCRM Core
  • Wiki
  • standalone

standalone · Changes

Page history
Update standalone authored Dec 12, 2021 by DaveD's avatar DaveD
Hide whitespace changes
Inline Side-by-side
standalone.md
View page @ d73bfd81
......@@ -126,6 +126,8 @@ $civicrm_setting['domain']['userFrameworkResourceURL'] = 'https://civi.example.o
## Initialize the database
### Using install files from an existing install
Copied `sql/civicrm.mysql` from a Drupal8 codebase, then:
```
......@@ -133,6 +135,44 @@ cat vendor/civicrm/civicrm-core/sql/civicrm.mysql | mysql -u civitest -p civites
cat vendor/civicrm/civicrm-core/sql/civicrm_generated.mysql | mysql -u civitest -p civitest
```
### Using GenCode instead
* Manually create a civicrm.config.php in vendor/civicrm/civicrm-core
```php
<?php
$settingsFile = '/path/to/civi-standalone/civicrm.settings.php';
define('CIVICRM_SETTINGS_PATH', $settingsFile);
$error = @include_once( $settingsFile );
if ( $error == false ) {
echo "Could not load the settings file at: {$settingsFile}\n";
exit( );
}
```
* Apply this patch to vendor/civicrm/civicrm-core
```diff
--- CRM/Core/CodeGen/Config.php.orig
+++ CRM/Core/CodeGen/Config.php
@@ -16,11 +16,12 @@
'drupal8',
'joomla',
'wordpress',
+ 'standalone',
])) {
echo "Config file for '{$this->config->cms}' not known.";
exit();
}
- elseif ($this->config->cms !== 'joomla') {
+ elseif ($this->config->cms !== 'joomla' && $this->config->cms !== 'standalone') {
$configTemplate = $this->findConfigTemplate($this->config->cms);
if ($configTemplate) {
echo "Generating civicrm.config.php\n";
```
* Run `cd xml && php GenCode.php 0 0 Standalone`
* Then you can use the civicrm.mysql and civicrm_data.mysql files in sql (or if you want sample data you can use civicrm_generated.mysql instead of civicrm_data.mysql).
# Example nginx vhost
(adapt to your environment)
......@@ -213,4 +253,6 @@ server {
}
}
```
\ No newline at end of file
```
For apache in addition to setting up the virtual host, you can then put the stock Drupal 7 .htaccess in web.
\ No newline at end of file
Clone repository
  • CiviCRM v5.49 Schedule Reminder Notice
  • CiviEvent v5.47 Timezone Notice
  • Event Time Zone Implementation Planning
  • Replacing AngularJS
  • Testy tests
  • afform security
  • Home
  • issue labels
  • message templates
  • sample data
  • standalone
  • utf8mb4