Skip to content

Commit 24f7ff6

Browse files
authored
Merge pull request #385 from TypeCellOS/main
Main
2 parents ea7d7fe + 9168efb commit 24f7ff6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ To run the project, open the command line in the project's root directory and en
3232
# Initial build of all packages required by the main editor project
3333
npm run build
3434

35+
# Start supabase
36+
npm run start:supabase
37+
# to stop docker containers later, run: npm run stop:supabase
38+
3539
# Start the local server
3640
npm run start:server
3741

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"start-react": "npm run start --workspace=packages/editor",
4040
"start:preview": "npm run preview --workspace=packages/editor",
4141
"start:server": "npm run dev --workspace=packages/server",
42+
"start:supabase": "npm run start:supabase --workspace=packages/server",
43+
"stop:supabase": "npm run stop:supabase --workspace=packages/server",
4244
"prepublishOnly": "npm run test && npm run build"
4345
},
4446
"overrides": {

packages/server/supabase.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# because we don't want to check in the secrets (even though they are staging)
33
# we have to source them from a local file for config.toml to work and then run the supabase command
44
# only necessary for local development, as github actions will have the secrets in env already
5+
if ! test -f .env.local; then
6+
cp .env.local.example .env.local
7+
fi
58
source .env.local
69
export TYPECELL_GOOGLE_OAUTH_SECRET
710
export TYPECELL_GITHUB_OAUTH_SECRET
8-
npx supabase "$@"
11+
npx supabase "$@"

0 commit comments

Comments
 (0)