question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cleanup of old Ghost versions

See original GitHub issue

Opening this issue for discussion and ideas.

Currently whenever a Ghost installation is updated using the CLI, the old version is left in the versions folder so that the user can rollback to the previous version should something go wrong. However, none of the older versions beyond that one previous version are ever cleaned up. My initial thought is that Ghost-CLI should keep 1 (maybe 2) previous releases just in case, and on update clear out anything older than that, but am curious if there’s any other use-cases for keeping more than 2 versions around that I haven’t thought about.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
acburdinecommented, Jun 21, 2020

what we might be able to do is reduce the number of old versions we keep. right now we keep 5 but we could reduce that to 2 maybe, since we can always reinstall older versions.

1reaction
ghostcommented, Sep 24, 2018

Is it safe to manually delete older versions? I’ve only got the last 4 versions installed and it’s chomping through a massive 622Mb of disk space:

158M    ./2.0.3
155M    ./1.25.3
155M    ./1.25.5
155M    ./1.24.9

The size of node_modules is insane - when a new version is installed, could this not be cleaned out, and then if rolled back, it could be “npm install-ed” again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ghost cleanup process guide - SQL Server | Microsoft Learn
Ghost records. Records that are deleted from a leaf level of an index page aren't physically removed from the page - instead, the...
Read more >
Inside the Storage Engine: Ghost cleanup in depth - SQLskills
It also allows delete operations to rollback more quickly because all that needs to happen is to unmark the records as being deleted/ghosted, ......
Read more >
The ghost cleanup task for SQL Server Databases
Each relational database consists of the background process and user processes.Similarly, SQL Server has many internal processes such as ...
Read more >
Ghost Cleanup - sql server
I wrote two comprehensive blog posts that explain ghost cleanup (it's the only place it's explained in depth anywhere, either in print or ......
Read more >
Ghost Cleanup settings - sql server 2012 - DBA Stack Exchange
I'm wondering if there's any way to change the default settings from 5 seconds and 10 pages to say every second or run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found