Migrating from Staging
'Staging' refers to this branch of spacebar-server, which is deprecated in favour of the refactor branch (if this is a 404, its just become the main branch now).
If you were using SQLite, you will be unable to migrate to the new version. SQLite is primarily for testing and development purposes, and it should not be used for production.
To migrate from Staging:
- Download the new version of spacebar-server
git clone https://github.com/spacebarchat/server.git
- Copy your
.env
file from your previous installation to the newspacebar-server
folder. - Copy any user data, specifically the
files
directory, to the new project root. npm i
in new installationnpm run setup
npm run migrate-from-staging
to run the migrations on your databasenpm run start
to start the server
Make sure you modify any existing scripts of yours to use the new path, or just rename the old one and move the new one in its place.