Skip to content

Feature: Add Kamal Deployment #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ronald2wing
Copy link

@ronald2wing ronald2wing commented May 1, 2025

Streamlined Deployment for Wave

Live demo: https://commercestarterkits.com/admin
Credentials: [email protected] / password

Overview

This PR implements an automated deployment pipeline for the Wave using Kamal. By standardizing the deployment process, we've created a reliable and repeatable workflow that requires minimal configuration while maintaining consistency across environments.

Key Features

  • One-command deployment and rollback
  • Automated database backups
  • Environment-specific configuration
  • Detailed deployment logging
  • Docker-based containerization

Prerequisites

  • DigitalOcean Docker droplet
  • Docker registry access credentials
  • Environment variables configured for your deployment

Deployment Instructions

1. Container Setup

  • Provision a DigitalOcean plain Ubuntu Docker droplet
  • Configure SSH access for deployment automation

2. Registry Authentication

export KAMAL_REGISTRY_PASSWORD=your_token_here

3. Environment Configuration

Configure your deployment environment:

In .kamal/secrets or .env:

APP_KEY=your_app_key
AWS_ACCESS_KEY_ID=your_aws_key
AWS_SECRET_ACCESS_KEY=your_aws_secret
DB_PASSWORD=your_database_password

In .env.production:

PROD_HOST=site-domain
SSH_HOST=ssh-ip-address

4. Deployment Commands

Initial setup:

dotenv -f ".env.production" kamal setup -vvv

Rebuild environment:

dotenv -f ".env.production" kamal remove -y && dotenv -f ".env.production" kamal setup -vvv

Documentation

@ronald2wing ronald2wing force-pushed the main branch 8 times, most recently from 2d2b1a6 to 909e6e4 Compare May 2, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant