CapSoftware / Cap

Open source Loom alternative. Effortless, instant screen sharing.
https://cap.so
GNU Affero General Public License v3.0
3.63k stars 169 forks source link

Use `@mattrax/mysql-planetscale` in dev #51

Closed Brendonovich closed 1 month ago

Brendonovich commented 1 month ago

Implements the @mattrax/mysql-planetscale library in development to allow @planetscale/database to connect with a plain mysql database. The way i've implemented this requires moving from the DB_* environment variables to a single DATABASE_URL connection string. The url needs to start mysql:// during development and when using drizzle kit, and should start with https:// in production or when testing locally using planetscale.

vercel[bot] commented 1 month ago

@Brendonovich is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

richiemcilroy commented 1 month ago

Thanks for this @Brendonovich! much appreciated. Also added in a new docker-compose.yml file, and updated the dev to include the creation of the DB + migration etc.