... | ... | @@ -72,14 +72,22 @@ About composer: Presumably we will want a composer template, so that people can |
|
|
|
|
|
### Initialize the database using GenCode
|
|
|
|
|
|
* Run `( cd vendor/civicrm/civicrm-core/xml && php GenCode.php 0 0 Standalone; )` (The brackets mean it runs in a subshell so doesn't change your working directory.)
|
|
|
* Then you can use the civicrm.mysql and civicrm_data.mysql files in `vendor/civicrm/civicrm-core/sql` (or if you want sample data you can use civicrm_generated.mysql instead of civicrm_data.mysql).
|
|
|
Run the following shell command. (The brackets mean it runs in a subshell so doesn't change your working directory.)
|
|
|
|
|
|
```
|
|
|
( cd vendor/civicrm/civicrm-core/xml && php GenCode.php 0 0 Standalone; )
|
|
|
```
|
|
|
|
|
|
Then you can use the civicrm.mysql (schema) and civicrm_data.mysql (base data) files in `vendor/civicrm/civicrm-core/sql` (or if you want sample data you can use civicrm_generated.mysql instead of civicrm_data.mysql).
|
|
|
|
|
|
The following assumes you have stored credentials for mysql set up in your `~/.my.cnf` file. If not, you'll need to add `-u <user> -p <pass>` arguments to the `mysql` commands below.
|
|
|
|
|
|
Example:
|
|
|
|
|
|
```
|
|
|
cat vendor/civicrm/civicrm-core/sql/civicrm.mysql | mysql -u civitest -p civitest
|
|
|
cat vendor/civicrm/civicrm-core/sql/civicrm_data.mysql | mysql -u civitest -p civitest
|
|
|
mysql -e "CREATE DATABASE standalone_civicrm;"
|
|
|
mysql standalone_civicrm < vendor/civicrm/civicrm-core/sql/civicrm.mysql
|
|
|
mysql standalone_civicrm < vendor/civicrm/civicrm-core/sql/civicrm_Data.mysql
|
|
|
```
|
|
|
|
|
|
# Webserver configuration
|
... | ... | |