Skip to content

When must the server restart?

Spacebar-server must restart in the following cases:

  • The .env file or config (database or CONFIG_PATH) has changed.
  • Files in the assets directory have changed.
  • Files inside src have changed (remember to npm run build).
  • The RabbitMQ connection has been lost.
  • The server has been updated.

For all other cases, you do not need to restart the server. For example:

  • Editing any table in the database other than config. For example, to edit a users rights
  • Database connection was lost (this should auto reconnect)

This is not an exhaustive list. If a change you made is not applied, the first thing you should try is restarting.