Skip to content

The Development Workflow

In general, the process of deploying Drupal on NixOS follows this workflow:

  1. On a local environment

    1. If you already have a server, pull down database and files, export configuration and commit it to the repository
    2. Develop Drupal on a local environment
    3. Push changes to repository
  2. In a NixOS CI/CD pipeline or NixOS your remote server

    1. Checkout changes from repository
    2. Trigger a nixos-rebuild

    Note

    If you choose to simply use NixOS's powerful rollback feature, you may elect to simply trigger a nixos-rebuild and skip over "Deploy" and head directly to the "Cleanup" step.

    Learn more about NixOS Generations

  3. Deploy

    1. Depending on your setup, either deploy image, swap out DNS, or point to the new server
  4. Cleanup

    1. Check installation, run tests, backup data, export config, etc.