The Development Workflow
In general, the process of deploying Drupal on NixOS follows this workflow:
-
On a local environment
- If you already have a server, pull down database and files, export configuration and commit it to the repository
- Develop Drupal on a local environment
- Push changes to repository
-
In a NixOS CI/CD pipeline or NixOS your remote server
- Checkout changes from repository
- Trigger a
nixos-rebuild
Note
If you choose to simply use NixOS's powerful rollback feature, you may elect to simply trigger a
nixos-rebuildand skip over "Deploy" and head directly to the "Cleanup" step. -
Deploy
- Depending on your setup, either deploy image, swap out DNS, or point to the new server
-
Cleanup
- Check installation, run tests, backup data, export config, etc.