diff --git a/scripts/deploy.worker.sh b/scripts/deploy.worker.sh index e3aba0864..380fdc8b4 100755 --- a/scripts/deploy.worker.sh +++ b/scripts/deploy.worker.sh @@ -23,5 +23,12 @@ ssh $SSH_DOMAIN "bash -s $username" << "EOF" docker compose --env-file .env.be-worker pull be-worker docker compose --env-file .env.be-worker up -d be-worker --force-recreate -V + docker compose --env-file .env.be-worker run -d --rm --name upsert-nlp-entities be-worker pnpm bin:run upsert-nlp-entities + docker compose --env-file .env.be-worker run -d --rm --name upsert-tg-pinned-message be-worker pnpm bin:run upsert-tg-pinned-message + docker compose --env-file .env.be-worker run -d --rm --name parse-all-tg-messages be-worker pnpm bin:run parse-tg-message all true + docker compose --env-file .env.be-worker run -d --rm --name clean-space-media be-worker pnpm bin:run clean-space-media --dry + docker compose --env-file .env.be-worker run -d --rm --name extract-actor-and-group-avatar be-worker pnpm bin:run extract-actor-and-group-avatar + docker compose --env-file .env.be-worker run -d --rm --name assign-default-area-featured-image be-worker pnpm bin:run assign-default-area-featured-image + EOF diff --git a/scripts/docker-deploy.sh b/scripts/docker-deploy.sh index eca8adfbf..e54168772 100755 --- a/scripts/docker-deploy.sh +++ b/scripts/docker-deploy.sh @@ -68,13 +68,6 @@ ssh $SSH_DOMAIN "bash -s $username" << "EOF" docker compose --env-file .env.api run -d --name api-migration api pnpm migration:run - docker compose --env-file .env.api run -d --rm --name upsert-nlp-entities api pnpm bin:run upsert-nlp-entities - docker compose --env-file .env.api run -d --rm --name upsert-tg-pinned-message api pnpm bin:run upsert-tg-pinned-message - docker compose --env-file .env.api run -d --rm --name parse-all-tg-messages api pnpm bin:run parse-tg-message all true - docker compose --env-file .env.api run -d --rm --name clean-space-media api pnpm bin:run clean-space-media --dry - docker compose --env-file .env.api run -d --rm --name extract-actor-and-group-avatar api pnpm bin:run extract-actor-and-group-avatar - docker compose --env-file .env.api run -d --rm --name assign-default-area-featured-image api pnpm bin:run assign-default-area-featured-image - cd ~/ # list top 5 bigger files diff --git a/services/api/package.json b/services/api/package.json index 0075fea8b..5f39ee598 100644 --- a/services/api/package.json +++ b/services/api/package.json @@ -26,7 +26,6 @@ ], "scripts": { "typecheck": "tsc --noEmit", - "bin:run": "node ./build/bin/cli.js", "build": "tsc -b tsconfig.build.json", "clean": "rm -rf build deploy", "db:diagram": "node -r tsx/cjs -T ./node_modules/.bin/typeorm-uml ormconfig.js -D LR -d ./data/media/docs/diagrams/typeorm-uml.png", diff --git a/services/worker/package.json b/services/worker/package.json index 6102d9ce3..7d62e3b6e 100644 --- a/services/worker/package.json +++ b/services/worker/package.json @@ -31,6 +31,7 @@ "dev:alpha": "DOTENV_CONFIG_PATH=.env.alpha pnpm dev", "docker:dev": "node --watch build/run.js", "lint": "eslint src", + "bin:run": "node ./build/bin/cli.js", "start": "node build/run.js", "test": "vitest -r ./ --workspace ./vitest.workspace.js", "test:all": "pnpm test:spec && pnpm test:e2e",