spatie/scotty
Scotty is a beautiful SSH task runner for executing scripted tasks on remote servers. Define tasks in a Scotty.sh file (bash with annotations), run them with clear output, and use it as a drop-in, Envoy-compatible alternative for deploys and ops.
Scotty.sh files (e.g., deploy, rollback, db:migrate).setup:env, teardown:legacy).restart:services, clear:logs)."Scotty eliminates SSH chaos by turning repetitive server tasks into version-controlled, auditable workflows—like Git for deployments. It’s a drop-in replacement for Laravel Envoy, cutting deployment time by 30% while reducing errors. For $0 cost (open-source), we gain consistency, traceability, and the ability to scale DevOps tasks without hiring specialized talent. Think of it as ‘Git for servers’—simple, powerful, and aligned with our PHP/Laravel stack."
Key Outcomes: ✅ Faster Releases: Automate deployments, rollbacks, and maintenance. ✅ Lower Risk: Replace error-prone manual SSH with structured scripts. ✅ Cost Savings: No licensing fees; leverages existing Laravel ecosystem.
*"Scotty replaces your ad-hoc SSH scripts with a maintainable, debuggable system. Write tasks in Scotty.sh (Bash + annotations), and it handles:
Why Now?
@servers/@macros, and run with scotty deploy.envoy.php to Scotty.sh and update syntax.Example Workflow:
# Define tasks in Scotty.sh
@servers remote=deploy@prod.com
@task deploy
git pull && php artisan migrate --force
# Run it
scotty run deploy # Shows live output per server
Trade-offs:
How can I help you explore Laravel packages today?