Recommended releases
Download | Released | |
---|---|---|
1.x-1.0.0-beta2 (14.57 KB) | Jan 6th, 2025 | Notes |
Config Deploy enables you to deploy partial configuration of a site through the
Backdrop GUI in a single upload file.
This module is aimed at web builders who don't want to use git to synchronize
the config files of their local site with staging or production.
ATTENTION: this module can potentially break your site. Make sure to read the
documentation down here.
Requirements
This module requires that the core's Config Manager module be enabled.
Installation
- Install this module using the official Backdrop CMS instructions at
https://docs.backdropcms.org/documentation/extend-with-modules. - Visit the configuration page under Administration > Configuration >
- Development > Configuration > Deploy
(admin/config/development/configuration/deploy) and create a new snapshot of
the active config dir. - Install this module in the staging and production sites also!
Documentation
Temporal documentation here is to be moved to the wiki.
How to use this module? Let's assume the following workflow of a sitebuilder to
create a new feature for a client:
- On the development site, create the feature, whether it is a new content type
with new fields, a new view or a new layout. - In order to test the new feature on the staging site, new or modified config
files need to get synchronized with the staging site. This can be done with git
or by uploading each individual configuration file through the Barckdrop's GUI - Once tested on staging, new feature can be deployed to production, again with
git or by uploading each individual configuration files.
What is the problem if you don't want or cannot use git? A new content type,
with 12 new fields, a couple of new views and a layout are configured with 30
individual configuration files that would need to be uploaded individually
with the Config Manager. Besides, the user has to know which exact configuration
files have been created or modified to get that specific new feature.
This module aims to facilitate this job by:
- Listing all the new and modified configuration files since a specific time.
- Compressing those files ONLY in a deploy.tar.gz file which can be uploaded to
staging or production sites through the Full Import form of the Configuration
Manager, in a single step.
How to accomplish this?
- Go to the configuration of this module on
admin/config/development/configuration/deploy. - Create a new snapshot. This will create a copy of the current active config
directory within the private path (which needs to be set). - Start creating your new feature. At any time, you can go to the admin page of
this module to see what the new and modified config files are. This is done by
comparing the actual state of the active config directory with the created
snapshot config directory. - Whenever you are ready to deploy, click on 'Download deploy file' in the
admin page of this module. - Go to the staging/production site and upload the downloaded deploy.tar.gz file
with the Full Import form of the Configuration Manager
(admin/config/development/configuration/full). Remember that you have to have
installed Config Deploy also in the staging/production sites. - Backdrop will show you the synch page with a list of missing files and all
the new and modified files. You can ignore the missing files BUT remember to
leave unchecked (by default) the new checkbox you will find at the bottom of the
sync form: this will prevent Backdrop to delete all the missing config files
it has found in the deploy.tar.gz file. - Click on 'Import all' button to get your new feature deployed in the site.
This module has some limitations, at this time:
- It only works with configurations in files, not in the DDBB.
- It is a new module and not fully tested. Please, use it with care. It would
be a very good idea to have a backup of you active config directory if you use
it. You can use the contrib module Backup Migrate for this.
Issues
Bugs and feature requests should be reported in the Issue Queue.
Current Maintainers
Credits
- Originally written for Backdrop by Robert Garrigós.
License
This project is GPL v2 software.
See the LICENSE.txt file in this directory for complete text.