I can't edit my project - it just refreshes and doesn't save any changes

This typically happens when your project is running out of disk space. On Glitch, projects are limited to 200MB of disk space.

If you can access the Project Editor, you can free up disk space by:

  1. Removing any unused or unnecessary files from your project.

  2. Adding any database files to the .data folder to save space and keep them secure.

  3. Adding other files that are taking up too much space to .gitignore. Project files that take up alot of space are usually ones that your project rewrites often.

  4. Once you have added larger files to .gitignore run the following commands in the project terminal:
    git prune and hit enter
    git gc and hit enter.
    refresh and hit enter

Here's more info about those commands and how they work:

git prune identifies orphaned git objects to be removed.

git gc is the parent command of git prune with the "gc" standing for "garbage collection". Running this command will delete orphaned git objects and other unused project elements that are taking up your valuable disk space!

If your project has been suspended for using too much disk space or you can no longer access the editor, please send a message to support@glitch.com so we can help you out. Be sure to include the project name.

You can read more about our technical restrictions here.

Project Options
Article last updated on