Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account using the Spring Winter quickstart. You need mySQL 8 and durable content storage. 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 MySQL 8. 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.
- Set
database__client=mysqland thedatabase__connection__host,database__connection__port,database__connection__user,database__connection__passwordanddatabase__connection__databasevalues. Configure durable content storage before startup. Put secret values in runtime configuration or the migration process’s secret store. - Start Ghost and let it initialize its database. Open the admin setup once it is healthy.
Configure the deployment
- Select a Spring Winter project in the AWS Region you want to use. Confirm where persistent or non-HTTP components will run before creating resources.
- Use the upstream Ghost image on port 2368 with the url runtime setting and the production MySQL connection settings from the release.
- Plan durable content storage for media and themes.
- On Spring Winter task compute, use a validated storage adapter and a strategy for the remaining content files or choose a persistent host.
- Configure email separately if you enable memberships or newsletters.