Skip to content

Commit

Permalink
fix(worker): moved bin commands from api service
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Jan 13, 2025
1 parent dd44a92 commit 3b30245
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
7 changes: 7 additions & 0 deletions scripts/deploy.worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 0 additions & 7 deletions scripts/docker-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion services/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions services/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3b30245

Please sign in to comment.