Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ops: define cleanup script for cloudflare deployments #242

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

vladjerca
Copy link
Collaborator

@vladjerca vladjerca commented Jan 9, 2025

This pull request, a digital cleanup crew armed with a rusty wrench and a cryptic script, descends upon the projects/client directory, leaving a trail of updated configurations and purged Cloudflare deployments in its wake. Observe, with a mix of curiosity and apprehension, the meticulous adjustments to Deno paths, the conjuring of a cleanup script, and the subtle yet impactful modifications to the package.json file.

Configuration updates (or, "The Pathfinding Expedition, Part III"):

  • The .vscode/settings.json file, a treasure map of developer preferences, undergoes a cartographic correction, its deno.disablePaths setting now pointing towards the projects/client/src directory, like a compass needle guiding developers towards the true source of code.

New Cloudflare cleanup script (or, "The Digital Grim Reaper"):

  • The cleanup-cloudflare.ts script materializes from the depths of the .scripts directory, a digital grim reaper tasked with purging outdated Cloudflare deployments. This automated executioner, armed with functions for fetching and deleting deployments, promises to maintain order in the server's attic, ensuring that only the most recent 15 deployments remain, like trophies on a digital mantlepiece.

Package updates (or, "The Script Summoner"):

  • The package.json file, a registry of project commands, welcomes a new addition: the cloudflare:cleanup script, an incantation for summoning the Cloudflare cleanup script. This new command, a testament to our desire for automation and efficiency, empowers developers to unleash the digital grim reaper with a single command, purging outdated deployments and maintaining a clean and organized server environment.

These changes, a testament to our ongoing struggle against digital clutter and our relentless pursuit of code hygiene, collectively enhance the project's maintainability and streamline the management of Cloudflare deployments. The updated Deno paths configuration ensures that developers can navigate the codebase with ease, while the new cleanup script automates the tedious task of purging outdated deployments. The result is a cleaner, more organized project, where outdated deployments are swiftly dispatched to the digital graveyard, and the server remains a haven of efficiency and order.

300 deployments deleted

image

@vladjerca vladjerca requested a review from seferturan January 9, 2025 21:04
@vladjerca vladjerca force-pushed the infra/cleanup_cloudflare branch from 73a6466 to d769a7f Compare January 9, 2025 21:11
@seferturan seferturan merged commit 36cc7a0 into main Jan 10, 2025
4 checks passed
@seferturan seferturan deleted the infra/cleanup_cloudflare branch January 10, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants