deploy
Deploy to AWS
Deploy the Pitfal Solutions website following this sequence:
Pre-deployment Checks
- Verify all tests pass:
pnpm test - Verify TypeScript compiles:
pnpm type-check - Check for uncommitted changes:
git status
Build Process
- Build the Next.js application:
pnpm build - Verify the
out/directory was created
Infrastructure Deployment
- Navigate to terraform:
cd infrastructure/terraform - Initialize if needed:
terraform init - Plan changes:
terraform plan -out=tfplan - Show plan summary to user and confirm before applying
- Apply changes:
terraform apply tfplan
More from forever-efficient/pitfal-solutions-website
optimize-images
Batch optimize images for web delivery. Converts to WebP, generates multiple sizes, and creates blur placeholders.
39gallery-manage
Organize, validate, and manage photo/video galleries. Create gallery structures, validate image files, and prepare content for upload.
35logs
View recent CloudWatch logs for Lambda functions and API Gateway.
30stripe-setup
Set up Stripe products, prices, and webhooks for Pitfal Solutions photography packages. Creates products for portrait sessions, event coverage, digital downloads, and prints. Use when configuring payment processing.
30db-seed
Seed the DynamoDB database with sample data for development and testing. Populates galleries, inquiries, and admin tables. Use when setting up local dev environment or resetting test data. WARNING - never run in production.
29preview
Start local development server for previewing the site.
28