Перейти к основному содержимому

Меню команд

Перейти на страницу или искать в каталоге

ИИ-инструменты и скрипты

Redeploy a Live Trading Bot Safely (PM2, Go)

Это объявление показано на языке оригинала (английский).

A redeploy runbook for a live trading service under PM2: catch new required env vars before boot, confirm the account is flat, back up the binary, restart by the real process name, prove the new build is live, roll back fast.

$7.00

Что вы получите: 1 файл · 12.14 KB · ZIP

Варианты покупки

Описание товара

A careful, repeatable procedure for shipping a new build of a running crypto trading service without an outage or a double-trade. It is written for Go services run under PM2 on a Linux host, and the checks carry over to similar stacks.

What is inside: - SKILL.md - the full procedure: diff the new code's required environment variables against the host's env file so nothing panics at boot, confirm the account is flat before restarting, back up the current binary, build and test on the host, restart by the real process name (not by a guess), and verify with a marker that only the new build prints. It also covers rollback and the control-plane case (HTTP API, Postgres migrations, static admin panel). - references/service-types.md - how the procedure changes per service type, and how to prune old rollback copies while keeping a ledger of which build ran when. - scripts/binary_identity.sh - reads the running binary from the process table and prints its start time, sha256, build settings and module graph, so "is commit X live" is answered from the binary, not from memory. - scripts/par_upload.sh - uploads a binary to several hosts in parallel with a per-host exit line. - scripts/swap_binary.sh - moves the live binary aside, installs the new one, checks the hash.

Who it is for: solo operators and small teams who deploy their own trading services and have been bitten by a missing env var, a half-updated library or a restart in the middle of a position. Needs SSH access, bash and, for Go, a toolchain. Nothing here places trades. Also included in the Crypto Trading Ops Playbooks pack at a lower per-skill price.

Example request

Deploy the latest main of my trader to the staging host. Check env changes first, make sure no position is open, and prove the new build is the one running.

Example result

Example on a fictional setup (host trading-1, service trader under PM2). Following live-service-redeploy the agent first diffed the required environment variables referenced by the new commit against the host env file and found one new required variable, EXCHANGE_TIMEOUT_MS, which would have caused a panic at boot. It stopped, proposed the line to add, and asked for the value.

After that: account check showed no open positions and no conditional orders, so the restart was safe. It backed up the live binary as trader.prev-0412, built on the host, ran the unit tests, compared sha256 of the build against the uploaded file, swapped the binary and restarted by the exact PM2 name from the process list (not the similarly named stopped entry).

Verification: the restart count moved by exactly one, no panic lines after the boot marker, and the new boot line "build marker v2" appeared in the log. binary_identity.sh printed the running executable's sha256 and the module graph, matching the intended commit. Rollback command was left ready: swap trader.prev-0412 back and restart. The agent listed three old rollback copies for pruning and asked before deleting anything.

Requirements

  • SSH access to your own Linux host running the service under PM2
  • bash, curl, sha256sum on the host
  • Go toolchain on the host or build machine (for Go services)

How to install

Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.

Что вы получите

1 файл · 12.14 KB

  • live-service-redeploy.zipZIP · 12.14 KB
ЛицензияКоммерческое использование разрешено
Проверка пакетаПройдена

Getly открыл загруженные файлы и не нашёл ничего, что помешало бы их открыть. Это не проверка на вирусы и не оценка качества.

Опубликовано3 дек. 2026 г.
Размер файла12.14 KB
Формат файлаZIP
Версияv1.0

Теги

claude codeclaude skillai agenttrading bot
C
Claude Workflow Lab

Частые вопросы

Доступ открывается сразу?

Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.

Можно ли использовать в коммерческих проектах?

Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.

Какие условия возврата?

Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.

Какие форматы и размеры файлов я получу?

Вы скачаете 1 файл - ZIP - всего 12.14 KB.

Обновления бесплатны?

Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.

Цена

$7.00