All hosts Moving from DigitalOcean App Platform

Move from DigitalOcean App Platform

App Platform builds from your source with buildpacks; velixir does the same and honours your Procfile. Most apps move with no code changes, with managed Postgres and Valkey alongside.

  1. 1

    Deploy your code

    velixir detects the language and builds your source, no Dockerfile needed. It's live on its velixir.run address in about a minute. Listen on 0.0.0.0 on the port in PORT; a Procfile's web line is the start command.

    velixir init
    velixir deploy
  2. 2

    Bring your variables

    Copy them from the component's environment variables with the Bulk Editor. Encrypted values show as EV[...] and can't be read back, so paste those from where you keep them. Leave out the database and Redis URLs: bind a velixir database and cache and they set DATABASE_URL and REDIS_URL for you. Moving is a good moment to rotate your keys, so paste fresh ones where you can.

    velixir env import .env --secret
  3. 3

    Copy your Postgres data

    Use the connection string from your managed database's page, with your IP added to its trusted sources. Create a Postgres database on velixir, restore into it using the external connection string, then bind it to your app.

    pg_dump -Fc --no-acl --no-owner "<digitalocean connection string>" > latest.dump
    velixir db connect <database-id> --external
    pg_restore --no-owner --no-acl -d "<external connection string>" latest.dump
  4. 4

    Switch the domain

    Add your domain on the app's Domains tab and point DNS at velixir. Keep the old service running until DNS has moved over.

What works differently

  • •Workers and jobs: run each as its own velixir app from the same source.
  • •Pre-deploy and post-deploy jobs: run migrations as part of your start command.

Stuck on something DigitalOcean App Platform-specific? Open a ticket from your dashboard and we'll help you move it.

The switching offer

We'll cover your hosting bill for 3 months.

Move your app, show us your last invoice from the host you're leaving, and we match it as velixir credit: up to €50 a month, for your first 3 months.

  • ✓ Credit arrives monthly while your app is live and serving visitors.
  • ✓ A card on file is needed to claim. It isn't charged for the offer.
  • ✓ One claim per team. Credit can't be cashed out or refunded.
Claim your credit

For the first 100 teams. We may close the offer at any time; claims already made are honoured.