Why moving a Decidim platform to new hosting is an infrastructure project with a data core
Moving an existing Decidim instance to new servers, containers or another cloud is mainly an infrastructure project, but its risk sits in the data. The move comes down to the database, uploads, host configuration, background jobs and email, and the effort depends on the Decidim version in use, the custom code loaded on top of it and the integrations that connect to it. Decidim runs on Ruby on Rails with PostgreSQL, so the database holds the participatory spaces, proposals, comments and user records, while uploaded files live in the file storage configured through ActiveStorage. Both must arrive at the new location consistent with each other, or participants will see broken attachments and missing content.
The Decidim version matters more than most teams expect. Each release sets its own Ruby, Node and PostgreSQL requirements, so the new hosting image must match the version you run, or a version change must be planned as a separate step. The update documentation also notes that some releases change database structures and asks for one minor version at a time, so a team that moves hosts and upgrades in the same window doubles its risk. Confirm the exact version, its supported status and any custom modules before you size the work, and ask your current provider or internal team for the configuration file that lists hosts, mailers and job settings.
Plan the cut-over as a sequence rather than a single switch. Identify which settings still point at the old host, including the host entries in the System panel, the SMTP relay, the background job workers and any social login callbacks, because each one can fail quietly after the new site appears to work. Decide how long the public site will stay in read-only mode, who signs off the final data copy and how you will confirm that scheduled tasks run only once. A rehearsal on a staging copy, using a fresh database dump and a full uploads sync, will show more about duration than any estimate made before the work starts.
Which parts of a Decidim instance move as-is and which need rework
This table compares each part of a running Decidim instance with what the new hosting environment needs. Read the middle column for what carries over unchanged and the right column for what must be reconfigured, retested or rebuilt before users see the new platform. Items marked as environment-specific depend on the new host names, mail relay, and cloud services, so plan them during cut-over preparation.
| Component | What moves as-is | What needs rework on the new host |
|---|---|---|
| PostgreSQL database | Schema, records, proposals, comments and participant accounts from a verified dump | Connection settings, PostgreSQL version alignment with the target release, and a restore test before cut-over |
| ActiveStorage uploads | Stored files and their attachment records, if the storage path or bucket is copied in full | Storage service configuration, bucket or volume permissions, and checks that attachments still resolve |
| Hosts in the System panel | Organization records and their configured hostnames | Every host must be updated to the new domain, and DNS, TLS certificates and redirects must match |
| ActiveJob workers | Queued and scheduled jobs remain in the database once it is restored | Worker processes, queue adapter and scheduled tasks must be started and pointed at the new database |
| SMTP settings | Email templates and organization sender names stay in the instance | Mail relay credentials, sender domain authentication and bounce handling are environment-specific and must be reconfigured |
| Maps and geocoding | Component and map content already saved in the database | API keys, allowed referrers and geocoding endpoints usually need new values for the new domain |
| Social login providers | Provider configuration stored per organization or globally | Redirect URIs registered with each provider must include the new hostnames before login works |
| Custom modules and themes | Code is copied into the new image or application tree | Must be rebuilt against the target Decidim version and retested, since minor releases can change internal APIs |
Documented paths for moving the database, uploads and configuration
Decidim's documentation covers the moving parts of a platform move: the PostgreSQL database, uploaded files and the configuration that points at them. Each card below is a documented mechanism or instruction you will combine into a move plan. Confirm every step against the release documentation for the exact version you run, because procedures change between minor versions.
PostgreSQL dump and restore
The database holds participants, proposals, comments, votes and settings, so it is the primary artifact of any move. Decidim runs on PostgreSQL, and the standard approach is a logical dump on the source and a restore on the target. Check the PostgreSQL major version on the new host against the version in the installation guide, and confirm that the restored schema matches the Decidim release you are running before you cut traffic over.
- Minimum PostgreSQL in manual guide
- 17.4
Back up the database before updating
The update guide tells operators to back up the database before any upgrade, and the same backup is your rollback point during a move. Take the backup from a quiet window, record its checksum, and test a restore on a separate host. Treat this backup as the baseline for comparing record counts after the cut-over, not only as a safety copy.
Updating DecidimActiveStorage file transfer
Uploaded documents, images and attachments are stored through ActiveStorage, and the storage service is set in configuration. Moving files means copying the objects from the source storage service to the target and confirming that the database rows still resolve to them. Check which storage service the production configuration names, whether the target uses the same service type, and whether file paths or bucket names change.
Installation guideManual installation as the reference
The manual guide describes a Rails application with its own database, background jobs, mail and file storage settings. Using it as the reference lets your team rebuild the target host from documented steps and then load data into it, rather than copying a server image. Compare the target configuration against the manual guide for the same release line, and record every deviation so the move can be audited later.
Docker installation as the alternative
Decidim can also be installed with Docker, which changes where configuration, secrets and uploads live. Volumes, environment variables and the container image tag become part of the move, and a container that starts cleanly may still be missing mounted storage. Confirm the image tag, the volume mapping and the secret handling in the installation guide for your target release before you migrate any data into it.
Decidim installation docsConfiguration and environment carry over
Secrets, SMTP settings, storage credentials, the host name and social login keys live in configuration, not in the database. A move that copies data but not these values will fail in quiet ways, such as broken links, unsent email or failed logins. Build a checklist from the production configuration and mark each value as copied, regenerated or rotated, then confirm it against the docs for your release.
Choosing between manual Rails, Docker and managed containers for the new host
Decidim can be installed manually as a Rails application on virtual machines you control. This model gives your operators direct access to the application server, the job processor, the reverse proxy and the database, so every configuration value lives in a file or service your team already manages. It suits organizations with established Linux operations and an existing practice for patching and backing up servers.
- Background jobs: Run the ActiveJob worker as its own managed service, with restart policy and logs, and confirm that scheduled tasks run on the new host.
- File storage: Point ActiveStorage at the storage backend chosen for uploads and confirm that the existing files resolve after the transfer.
- SMTP: Set the outbound mail host, credentials and sender addresses, then send test messages from each organization.
- Maps and geocoding: Re-enter provider keys and check that map components load from the new network location.
- Social providers: Update redirect URLs for each login provider to the new hostname before users attempt to sign in.
Before cutover, confirm that the Rails version, Ruby version and Node version on the new host match the Decidim release you are running, and that the database migration state is clean.
Docker packages the application, its runtime and its dependencies into images, so the new host runs the same build you tested. Your team still supplies the database, object storage and mail relay, and still decides how containers restart, how they are upgraded and where secrets are stored. This model reduces differences between staging and production when the image and environment files are kept under version control.
- Environment files: Keep secrets out of image layers and inject them at runtime, and record every variable that differs from the old host.
- Background jobs: Run the worker as a separate container from the web process, with its own health checks and restart behavior.
- File storage: Mount or connect the upload storage through a network service rather than a container's local filesystem, so data survives container replacement.
- SMTP and social providers: Confirm that containers can reach the mail relay and login providers, and that redirect URLs match the new public hostname.
- Image versions: Pin the image tag to the release you have tested, not a floating tag.
Before cutover, run a full login, a test submission, a sent email and a completed background job from the new containers, and confirm that restarting each container does not lose uploads.
Some organizations already operate a container platform such as Kubernetes with their own ingress, secrets management, logging and backup tooling. Hosting Decidim there means adapting the Decidim deployment to platform conventions instead of building a new operating model. The platform team usually owns the cluster, while the Decidim team owns the application configuration and data.
- Workload split: Decide how the web process, background jobs and scheduled tasks are scheduled as separate workloads, and which one runs migrations.
- Persistent storage: Map upload storage and the database to volumes or managed services that the platform's backup tooling covers.
- Ingress and TLS: Confirm how the ingress controller handles the public hostname, certificates and the redirect URLs used by social login.
- Secrets and configuration: Store credentials in the platform's secrets mechanism, and confirm who can read them.
- Network policy: Allow outbound access to SMTP, maps and login providers, and restrict database access to the Decidim workloads.
Before cutover, ask your platform team to confirm restore tests for the volumes and database, and confirm which team owns each alert and runbook.
How the move runs from inventory to decommissioning the old host
The sequence moves a running Decidim platform to new hosting without losing data or URLs, and keeps the old host available until the new one has proven itself. Each phase ends with a check that the next phase depends on.
Inventory the version, modules and data
Record the exact Decidim version, the Ruby, Node and PostgreSQL versions in use, every custom module or override, each OAuth and SMTP integration, and the size of the database and uploads storage. Your engineers and the DeployOpen team review this list together, since custom code is the most common source of surprises. The step is done when the inventory is written down, reviewed and agreed, and every item has an owner.
Build the target environment at the same version
Provision the new servers, containers or cloud account and install the same Decidim version as the old host, with matching Ruby and Node versions and the same custom code. Do not upgrade during the move, because a version change and a hosting change at once make failures hard to attribute. Confirm the installation with the manual installation guide or the Docker setup your team has chosen. The step is done when the new instance starts, passes its health checks, and serves the application with an empty or test database.
Run a pilot restore with real data
Restore a recent copy of the production database and uploads into the target environment, then update the host settings in the System panel so the new instance uses its own hostnames. Check that attachments open, images render, and the background job queue processes work. Measure how long the restore takes so the cutover window is planned from evidence. The step is done when a participant-facing walkthrough and an administrator walkthrough both succeed on the restored copy.
Run the parallel environment with DNS and mail controls
Keep the old host live while the new one runs against the restored data. Decide in advance which outbound email is sent from which environment, so participants do not receive duplicate notifications, and point SMTP and any test domains at a sink or a restricted recipient list. Confirm that OAuth redirect URLs, maps and social login providers accept the new hostname before DNS changes. The step is done when the team has signed off on email routing and identity callbacks, and the DNS change plan with its reversal steps is written down.
Back up the database and cut over
During the agreed window, put the old instance into read-only or maintenance mode, take a full database backup before anything else, then copy the latest uploads and switch DNS to the new host. Verify the backup file restores before you rely on it. Stop background jobs and scheduled tasks on the old host so they do not run twice. The step is done when the new host serves production traffic, the backup is verified, and the old host has no active jobs or scheduled tasks.
Watch the new host and hold rollback
Monitor logs, job queues, email delivery and error rates for the period your team agreed in advance. Keep the old host in a stopped but intact state so that a rollback means reverting DNS and restoring the old database state. Any problems found here are fixed on the new host, not patched on both. The step is done when the agreed observation period has passed without open blocking issues and the team confirms the new host as the system of record.
Decommission the old host after rollback ends
Once rollback is no longer needed, archive a final backup of the old host, remove its DNS records and credentials, revoke its API keys and OAuth clients, and delete the data from servers you no longer control. Confirm with your data protection and records owners how long the archive must be kept. Any upgrade to a supported release is a separate project that follows the one-minor-version rule and should start only after this step is complete. The step is done when the old host is shut down, the archive is stored under your retention policy, and the decommissioning record is signed.
How data, hosts and mail connect during the parallel run and cutover
The diagram starts with the source Decidim instance, whose PostgreSQL database and uploads are copied to the target environment before the parallel run begins. The target's configured hosts, background job workers and SMTP settings are then checked against the copied data, while social login callbacks are registered for the new hostname. At cutover, DNS is switched to the target, and the source stays intact so the team can return traffic to it if checks fail. Confirm each link before the switch, not after.
Source and target environments during the parallel run, with the DNS switch and rollback path.
What makes a Decidim hosting move larger or smaller
This table lists the factors that most change the effort of moving a Decidim instance to new servers, containers or another cloud. Read each row as a question to put to a partner: what raises effort, what lowers it, and what should be confirmed in writing before a quote is agreed.
| Driver | Effect on effort | What to confirm in writing |
|---|---|---|
| Source and target Decidim versions | Raises effort when the source is behind the target or when an upgrade must run first. Each minor version step has its own upgrade instructions, and the update guide says to move one minor version at a time. | Exact source version, exact target version, whether intermediate upgrades are included, and who tests each step. |
| Database and uploads size | Raises transfer time, backup windows and verification work. Large ActiveStorage file sets can take longer to copy than the database dump itself. | Database size, uploads volume and file count, transfer method, and how checksums or record counts will be compared after copy. |
| Number of organizations on the instance | Raises effort because each organization has its own hosts, settings, social providers and content to check after the move. | Organization list, host names in the System panel, and the post-move checks run for each organization. |
| Custom modules and overrides | Raises effort sharply, since custom code must match the target Decidim version and may need rework before it runs on new hosting. | Inventory of custom modules and view overrides, their compatibility with the target version, and who fixes breakages. |
| OAuth and social login providers | Raises effort when several providers are configured globally or per organization, because callback URLs and client secrets must be reissued for new hosts. | Provider list, which organizations use each one, callback URL changes, and who updates each provider's console. |
| Background jobs and scheduled tasks | Raises effort when queues, workers and cron-style tasks are split across several servers or containers, since each must be moved and verified. | Worker layout on the source and target, queue names, scheduled task list, and how stalled jobs will be detected. |
| SMTP and mail deliverability | Raises effort when the sending domain, SPF, DKIM or DMARC records or the SMTP provider change, because notifications and verification emails can fail or land in spam. | SMTP provider and credentials handling, DNS changes required, test messages sent to each organization, and a rollback path for mail. |
| Acceptable public downtime | Lowers effort when a longer maintenance window is allowed. A short window or a zero-downtime goal usually adds replication, staged cut-over and rehearsal work. | Agreed maximum outage, the cut-over window, the number of rehearsal runs, and the rollback point if the target fails. |
Questions buyers ask before moving a Decidim instance to new hosting
What does it cost to move a Decidim instance to new hosting?
The cost comes from the written scope, not from a list price. DeployOpen does not publish prices, and a quote follows from the agreed scope. The main cost drivers are the number of environments to rebuild (production, staging, and any test copy), the size and complexity of the database and uploads to transfer, custom modules or overrides that must run on the new host, the number of background job, mail and social login settings to reconfigure, and how many rehearsal runs the cutover needs. Ask for a quote that separates one-time work (planning, rebuild, data transfer, rehearsal, cutover, verification) from recurring costs such as hosting, backups, monitoring and any support retainer. Ask which items the quote assumes you provide, such as hardware, cloud accounts and SMTP credentials.
How long does a Decidim hosting move take?
Duration depends on the factors that shape the work: how far the current version is from a supported release, the size of the database and uploads directory, how many hosts and services are involved, how much custom code needs retesting, and how quickly your team confirms DNS, mail and identity settings. Decidim's update documentation says to move one minor version at a time and to back up the database first, so a version change in the same window adds steps and time. Ask for a timeline with separate phases for discovery, rebuild, data copy, rehearsal and cutover, and check which dates depend on your approvals, change windows and access grants.
What must our team provide before a Decidim migration starts?
Plan for a small group of named owners before work begins. You will need administrative access to the current and target infrastructure, a recent database backup and a copy of the uploads storage, the current configuration files and secrets handling method, and the list of custom modules and overrides. You also need the owner of DNS records, the owner of the SMTP service and sender domain, the owner of any social login or identity provider applications, and the person who can approve the cutover window and any rollback decision. Confirm these names and access paths in writing during discovery, because delays usually come from waiting for them rather than from the technical work.
Can our own team move Decidim to new hosting without a partner?
Yes, if your team has experience with Ruby on Rails, PostgreSQL, container or server administration and mail configuration, and can test the result end to end. Decidim can be installed manually as a Rails application or with Docker, and production setups configure background jobs (ActiveJob), file storage (ActiveStorage), SMTP, maps and geocoding, and social login providers. The hard parts are usually the data copy with verified integrity, matching the exact runtime versions for your release (for example Ruby 3.4.7 and Node 22.14.x for v0.32), reconfiguring the System panel host settings, and rehearsing a cutover that can be reversed. If those skills are not in-house, a fixed-scope engagement can cover them while your team keeps ownership of the platform.
How do we keep Decidim URLs stable after the move?
Keep the public hostname the same wherever possible, and change only the infrastructure behind it. Lower DNS record time-to-live values well before cutover, so that a switch takes effect quickly, and keep the old environment running until the new one is verified. Check every host the instance answers to, including the host entries set in the System panel, redirects, links in emails, social login callback addresses and any embedded or exported content. Decidim v0.32.0 introduced locale-prefixed URLs, so confirm which URL format your release uses before comparing links from the old site. Test a sample of old links against the new environment and record the results as part of the cutover evidence.
What happens if the cutover to the new Decidim hosting fails?
A sound plan defines the rollback before the cutover starts. Keep the source environment intact and read-only where practical, keep a verified database backup taken immediately before the switch, and agree the exact conditions that trigger a rollback, such as failed login tests, missing uploads, broken background jobs or mail not being delivered. Point DNS back to the old environment if needed, and reconcile any content created on the new host during the window before switching again. Decidim's update guidance stresses backing up the database first, which is also the basic protection for a failed move. Ask your partner to describe the rollback steps, the people who approve them and how long the old environment stays available.
What checks confirm the new Decidim host works before go-live?
Verify the platform with functional and data checks, not only a page load. Confirm that the database restored with the expected record counts for participatory spaces, proposals and users, that uploaded files open correctly, that background jobs run, that outgoing mail is delivered through the configured SMTP service, and that login works with each configured identity method. Check the System panel host settings, the scheduled tasks, and the maps and geocoding services. Security checks belong here as well: confirm that TLS certificates, admin access, secrets storage and backups are configured on the new hosts and that the Decidim version is one that receives security updates. Decidim's security policy supports the last two minor versions until version 1.0, so a move to an unsupported release creates a risk to address before go-live.
Does a Decidim hosting move change the software version?
It does not have to, but moving to a supported version is often the right time to plan it. Per Decidim's security policy, only the last two minor versions receive security updates before version 1.0, currently 0.32.x and 0.31.x, and 0.30.x and earlier are not supported. Decidim's update guide asks you to upgrade one minor version at a time, for example 0.29 to 0.30 before 0.31, and to follow each release's upgrade instructions because some change database structures. Decide early whether the move is hosting only or hosting plus upgrade, because a combined change is larger and needs more rehearsal. Confirm the target version with your partner before the infrastructure build starts.
What usually goes wrong when a Decidim instance changes hosts
Most failed host moves for Decidim come from a small set of mismatches: data that no longer lines up, settings that still point at the old environment, and services that were never started on the new host. Each risk below is easy to miss during planning and expensive to find during a live election or consultation.
Database restored without matching uploads
Decidim stores participant-submitted files through ActiveStorage, so the PostgreSQL dump and the uploaded files must come from the same moment. A database restored from Tuesday next to uploads copied on Friday produces attachments that point at missing files or files that no longer match their records. Before cut-over, take the database backup and the file copy in the same freeze window, then open a sample of proposals and attachments on the new host to confirm they render and download.
Decidim installation docsOld domain left in hosts and origins
Organization host settings, the allowed origins and any absolute URLs stored in content or emails can still reference the previous domain. Users then get redirected to the old address, assets load from it, or links in notifications break once the old site is retired. Check the organization hosts in the System panel, reference the new domain in your reverse proxy configuration, and search stored content for the old hostname before you switch DNS.
Background jobs not running on the new host
Decidim relies on ActiveJob workers for notifications, exports, imports and other deferred work. A new host that serves web traffic but has no running worker processes will accept actions and then appear to stall, with emails never sent and exports never ready. Confirm the worker service, its queue configuration and its scheduled tasks are running on the new host, and watch the queue during the first hours after cut-over.
SMTP and sender domain not authorized
Moving to a new network or cloud changes the outbound IP address that mail leaves from. Receiving servers may reject or junk messages if the sender domain's SPF, DKIM or DMARC records do not authorize the new source. Participants then miss verification codes and notifications without any error in the application. Ask your mail provider for the sending addresses to authorize, update the DNS records before cut-over, and send test messages to several mailbox providers.
Social login callbacks failing
Facebook, Twitter, Google and Decidim-to-Decidim OAuth 2.0 logins redirect back to a callback URL registered with each provider. After a host change, that callback still points at the old domain, so sign-in fails for every user who relies on it. Update the redirect URIs in each provider console, confirm the client credentials are present on the new host, and test each provider with a non-admin account before announcing the move.
Social providers docsRuby and Node versions differ from the documented requirements
A new base image or server often ships with a different Ruby or Node runtime than the Decidim release expects. Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, while v0.31 uses Ruby 3.3.4 and Node 22.14.x, so a mismatch can stop the application from booting or cause subtle asset failures. Pin the runtime versions in your build, match them to the release you are running, and do not combine a host change with a version upgrade in the same window.
Manual installation guideHow the security and update policy affects the new environment
Until version 1.0, Decidim only issues security updates for its last two minor versions, which at the time of the facts supplied means 0.32.x and 0.31.x. Versions 0.30.x and earlier are not supported. That rule decides the target version for the new host: if your current instance runs an older branch, the move is also the moment to plan an upgrade, because a platform rebuilt on an unsupported release starts its life already outside the security window. Before you pick the target, confirm the current supported branches on the Decidim releases page, since the branch list moves with each minor release, and record the exact version you are deploying so the host inventory and the Decidim version match.
Decidim's security policy gives implementers a grace period of 2 months to apply patches for standard vulnerabilities and 4 months for critical ones before details are disclosed. Those windows only help if the new host can take a patch quickly. Ask your hosting or platform team who receives the Decidim release notices, how a patched container image or application release reaches production, and who approves an emergency rebuild. Confirm that the new environment has a tested path for applying a new minor or patch release to the Rails application, its gems, Node dependencies and the PostgreSQL server, not only the Decidim code itself.
Security reports about Decidim should go to security@decidim.org or through GitHub Security Advisories, as the policy describes. Put those channels in your runbook for the new host, along with your own internal contacts for suspected incidents affecting the database, uploads or the System panel. Your team also owns the operating system, container base images, reverse proxy, TLS certificates and the mail relay, none of which Decidim patches for you. Assign an owner for each layer and schedule a recurring check that compares the running versions with the supported branches, so a move that succeeds technically does not leave the platform unpatched for months.
How DeployOpen works on this
DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so a Decidim move is handled in the cloud accounts, data centers or air-gapped networks you control. We start from a written scope that names the database, uploads, hosts, background jobs, email and cut-over steps before any server is touched.
How we scope
- Inventory the current instance: Decidim version, Ruby and Node versions, database size, uploads volume and custom modules.
- Confirm the target hosting model, whether manual Rails stack or Docker, and who owns each server and account.
- Agree in writing the deliverables, cut-over window, rollback criteria and any version upgrade included in the fixed scope.
How we build
- Stand up the new environment with PostgreSQL, ActiveStorage file storage, ActiveJob workers, SMTP and the host settings in the System panel.
- Run rehearsal migrations of the database and uploads, then verify logins, social providers, maps and scheduled tasks on the new hosts.
- Test the platform, including access control and admin settings, before the production switch is approved.
How we hand over
- Deliver a runbook covering the cut-over sequence, DNS and certificate changes, and the rollback procedure.
- Document the new architecture, backup jobs, restore tests and the configuration keys your team will maintain.
- Walk your operations team through the environment and record which items remain under your ownership after go-live.
How we support
- Engagements are fixed-scope, so post-move work is quoted separately from the original agreement.
- Ongoing support, upgrades and continuous testing are available as a retainer, including the one-minor-version-at-a-time upgrade path.
- Confirm with us during scoping how security patch intake and monitoring will be handled after the move.

