Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

From Prompt to Live Endpoint on Free Tiers

Описание и применение

Пошаговый процесс создания, проверки и развертывания скрипта проверки доступности URL на бесплатном сервере MonkeyCode, обеспечивающий своевременное обнаружение сбоев.

Задача

Small services on free tiers often fail silently at night, causing silent downtime.

Результат

The workflow demonstrates that a simple, spec‑driven script can be generated, verified locally, and deployed to a free server, providing reliable health checks with clear failure signals.

Рабочий процесс

  • Write a concise spec file (spec.py) describing inputs, actions, outputs, and exit conditions.
  • Prompt the model with the spec to generate a draft script (healthcheck.py).
  • Review the draft line‑by‑line for error handling, timeouts, and exit logic.
  • Run the script locally with a controlled URL list and verify output and exit code.
  • Modify the URL list to a dead port to confirm the script exits non‑zero on failure.
  • Deploy the verified script to the free MonkeyCode server with a cron schedule using the CLI.
  • Wait for the first run, then query the public endpoint to confirm server behavior.

Доказательства

The script exits non‑zero when any URL returns 5xx.

Источник

Deploy to the free server runs the script on a schedule.

Источник

  • Дата записи: 2026-09-08T01:37:54.115Z