How to deploy to production
Deploy your Sequin implementation to production
Once you’ve created your Sequin sinks locally, you can move your implementation to production.
You can use the Sequin CLI to export your local configuration and apply it to your production environment.
Prerequisites
- The Sequin CLI installed locally, setup with contexts for both your local and production environments
Steps
Export your configuration
Export your local configuration:
Replace local
with the name of your local or development context.
This creates a sequin.yaml
file you can commit to your repository.
Consider having different YAML files for different environments. For example, sequin.staging.yaml
and sequin.production.yaml
.
Database names often differ between environments (e.g. my_db_dev
vs my_db_prod
).
sequin config export
is still early and experimental. See the warnings given when you run the command.
Apply to production
Apply your configuration to production:
Replace production
with the name of your production context.
Sequin will show you the changes it will apply to your production environment. If they look good, confirm by entering yes
.
Was this page helpful?