Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account using the Spring Winter quickstart. You need postgreSQL and ClickHouse. Check the upstream deployment instructions and pin a release before you deploy. Source repository.Create and connect the database
- Create a private SQL database with PostgreSQL for application data. If you already have a database for this deployment, verify that the engine and version match the pinned app release. Wait for the database to be ready.
- Open Connect on the database. Use the writer endpoint, port, database name and application credentials. Create the application database and role if needed. Confirm that the application and migration process can reach the private writer.
- Also provision a separate, private ClickHouse service with durable storage for analytics events. Set both database connections using the pinned release’s Compose configuration. Put secret values in runtime configuration or the migration process’s secret store.
- Run the release’s setup and migrations for both databases before serving Plausible. Then verify that a test event arrives.
Configure the deployment
- Select a Spring Winter project in the AWS Region you want to use. Use a web server for the HTTP app and configure dependencies before you start it.
- Use the application image and startup sequence in the selected Community Edition release.
- Keep both databases persistent.
- Provide BASE_URL, SECRET_KEY_BASE and the connection settings in that release’s Compose configuration.
- Keep ClickHouse on a private reachable endpoint that meets the release requirements.
- Check which Compose startup commands must be preserved when deploying the web service.