Drupal: Difference between revisions
Add information about managing config and database backups after a successful deployment and installation. |
|||
| Line 45: | Line 45: | ||
==== Capturing Server Resources Before Your Next Rebuild ==== | ==== Capturing Server Resources Before Your Next Rebuild ==== | ||
After installing Drupal on NixOS using the admin UI, you will want to export the MYSQL database of your website and export the Drupal site configuration. Doing both steps makes it possible to implement continuous integration and continuous delivery on the environment you just created. | After installing Drupal on NixOS using the admin UI, you will want to export the MYSQL database of your website and export the Drupal site configuration. Doing both steps makes it possible to implement continuous integration and continuous delivery on the environment you just created. | ||
===== Exporting The Database ===== | ===== Exporting The Database ===== | ||
| Line 94: | Line 82: | ||
services.drupal.sites."my-host-name.local".configSyncDir = "/var/lib/drupal/my-host-name.local/config/sync"; | services.drupal.sites."my-host-name.local".configSyncDir = "/var/lib/drupal/my-host-name.local/config/sync"; | ||
</syntaxhighlight>If you use the default setting for <code>configSyncDir</code>, you can simply add the first line of code and substitue your hostname. | </syntaxhighlight>If you use the default setting for <code>configSyncDir</code>, you can simply add the first line of code and substitue your hostname. | ||
== Configuration == | == Configuration == | ||