Updating Blog Builder
Follow these steps to safely update to a newer version.
Before Updating
Back up the following files and store them somewhere safe outside your installation directory:
.env— Your configuration and credentialsstatic/folder — Custom images and static assetsuploads/folder — User-uploaded content
Update Process
-
Prepare for the update
Major vs Minor UpdatesFor major version updates (e.g., 1.x → 2.x), fully stop the application before continuing:
Forever:
forever stop PROCESSID
PM2:pm2 stop blogbuilderFor minor updates, a restart at the end is sufficient.
-
Delete the following files and folders from your installation directory:
package.jsonbuild/folder — Must be completely deleted, not just replaced. Leftover files inbuild/can cause subtle errors.
Do NOT delete your
.env,static/, oruploads/folders. -
Download the latest release from shadowdevs.com
- Read the release notes before proceeding — some releases include specific instructions
- Download the appropriate version for your license
-
Copy the new files into your installation directory
- Extract the downloaded zip
- Copy all files except
.env,static/, anduploads/
-
Update dependencies (only if the release notes say to)
- Delete
package-lock.jsonandnode_modules/ - Run
npm install
- Delete
-
Check for
.envchanges in the release notes- Add any new required environment variables to your
.env - Keep all existing values
- Add any new required environment variables to your
-
Restart Blog Builder
Forever:
- Major update (stopped in step 1):
forever start build/index.js - Minor update:
forever restart PROCESSID
PM2:
- Major update (stopped in step 1):
pm2 start build/index.js --name blogbuilder - Minor update:
pm2 restart blogbuilder
Check the logs for any startup errors.
- Major update (stopped in step 1):