Warning: When performing database migrations, you may lose data if the migration is not done properly.
Pull the current version:
Apply database migrations by running one of the following commands:
In a development environment, run:
npx prisma migrate dev
(this can clear your development database in some cases)
In a production environment, run:
npx prisma migrate deploy
.env.exampleand compare it to your current
.envfile. In case there are any fields not present in your current
.env, add them there.
For the current version, especially check if the variable
BASE_URLis present and properly set in your environment, for example:
Start the server. In a development environment, just do:
For a production build, run for example:
yarn buildyarn start
Enjoy the new version.