Skip to content

Commit

Permalink
Merge pull request #385 from TypeCellOS/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
YousefED authored May 22, 2024
2 parents ea7d7fe + 9168efb commit 24f7ff6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ To run the project, open the command line in the project's root directory and en
# Initial build of all packages required by the main editor project
npm run build

# Start supabase
npm run start:supabase
# to stop docker containers later, run: npm run stop:supabase

# Start the local server
npm run start:server

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"start-react": "npm run start --workspace=packages/editor",
"start:preview": "npm run preview --workspace=packages/editor",
"start:server": "npm run dev --workspace=packages/server",
"start:supabase": "npm run start:supabase --workspace=packages/server",
"stop:supabase": "npm run stop:supabase --workspace=packages/server",
"prepublishOnly": "npm run test && npm run build"
},
"overrides": {
Expand Down
7 changes: 5 additions & 2 deletions packages/server/supabase.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
# because we don't want to check in the secrets (even though they are staging)
# we have to source them from a local file for config.toml to work and then run the supabase command
# only necessary for local development, as github actions will have the secrets in env already
if ! test -f .env.local; then
cp .env.local.example .env.local
fi
source .env.local
export TYPECELL_GOOGLE_OAUTH_SECRET
export TYPECELL_GITHUB_OAUTH_SECRET
npx supabase "$@"
npx supabase "$@"

0 comments on commit 24f7ff6

Please sign in to comment.