|
| 1 | +# Self-Hosting Changes.Page |
| 2 | + |
| 3 | +This guide will help you set up and deploy Changes.Page on your own infrastructure. |
| 4 | + |
| 5 | +## Database Setup |
| 6 | + |
| 7 | +You have two options for setting up the database: |
| 8 | + |
| 9 | +### Option 1: Local Supabase (Recommended for Development) |
| 10 | + |
| 11 | +Follow the official Supabase self-hosting guide using Docker: |
| 12 | +https://supabase.com/docs/guides/self-hosting/docker |
| 13 | + |
| 14 | +### Option 2: Supabase Cloud |
| 15 | + |
| 16 | +Create a new project at [supabase.com](https://supabase.com) and use the provided connection details. |
| 17 | + |
| 18 | +## Application Deployment |
| 19 | + |
| 20 | +The repository includes Docker Compose files for easy deployment of the applications. |
| 21 | + |
| 22 | +1. Ensure you have Docker and Docker Compose installed |
| 23 | +2. Set up your environment variables in the respective `.env` files (see `.env.example` files in `apps/web` and `apps/page`) |
| 24 | +3. Run the applications using Docker Compose: |
| 25 | + |
| 26 | +```sh |
| 27 | +docker-compose up -d |
| 28 | +``` |
| 29 | + |
| 30 | +## Feature Limitations |
| 31 | + |
| 32 | +Please note the following limitations when self-hosting: |
| 33 | + |
| 34 | +- **Billing**: Currently only supported through Stripe integration |
| 35 | +- **Custom Domains**: Only supported when deployed on Vercel |
| 36 | +- **AI Features**: All AI functionality is channeled through ManagePrompt and requires their service |
| 37 | + |
| 38 | +## Environment Configuration |
| 39 | + |
| 40 | +Make sure to configure the following in your environment files: |
| 41 | + |
| 42 | +- Database connection details (Supabase) |
| 43 | +- Authentication keys |
| 44 | +- Stripe keys (if using billing features) |
| 45 | +- ManagePrompt API keys (if using AI features) |
| 46 | +- Any other third-party service credentials |
| 47 | + |
| 48 | +For detailed environment variable setup, refer to the `.env.example` files in the respective app directories. |
| 49 | + |
0 commit comments