Skip to content

Commit

Permalink
Allowed twitch clip downloader to run for now
Browse files Browse the repository at this point in the history
  • Loading branch information
changesbyjames committed Nov 23, 2024
1 parent 7f24bf3 commit 2f0439d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions census/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

This is the secret that the API uses to sign the JWTs. For local development, you can stick to the default value but know that it makes the token insecure. If you want to generate a new secret, you can run `pnpm --filter=@alveusgg/census-api setup:jwt` to generate a new secret.

## Seeding the database

You will need to seed the database with the correct data. To add yourself as an admin, run `pnpm --filter=@alveusgg/census-api setup:api` and follow the prompts.

## Running the services

1. Start the database.
- In the root of the repo, run `docker compose up`.
1. Start the local services, the database, cache & blob storage.
- In the root of the repo, run `pnpm run deps:up`.
2. Start the API.
- `pnpm --filter=@alveusgg/census-api start`.
- `pnpm --filter=@alveusgg/census-api dev` to start in watch mode.
3. Start the UI.
- `pnpm --filter=@alveusgg/census-website start`.

## Seeding the database

You will need to seed the database with the correct data. To add yourself as an admin, run `pnpm --filter=@alveusgg/census-api setup:api` and follow the prompts.
- `pnpm --filter=@alveusgg/census-website start`. This is always started in watch mode.

## Optional & additional setup

Expand Down
3 changes: 2 additions & 1 deletion census/api/src/services/twitch/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ const runBinary = async (args: string[]) => {
export const runTwitchDownloader = async (args: string[]) => {
const { variables } = useEnvironment();
if (variables.NODE_ENV !== 'development') {
throw new Error('TwitchDownloaderCLI is not available in production');
console.warn('TwitchDownloaderCLI will not be available in production');
}

const hasBinary = await checkForBinary();
if (!hasBinary) {
await downloadBinary();
Expand Down

0 comments on commit 2f0439d

Please sign in to comment.