1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-25 11:42:58 +01:00
This commit is contained in:
Madeline 2023-02-01 13:51:23 +11:00
parent 3f44ebfe61
commit e2667a940d
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
4 changed files with 13 additions and 13 deletions

View File

@ -17,7 +17,7 @@ To generate a database migration in fosscord-server:
npm run generate:migration -- src/util/migrations/:dbms:/:migrationName:
```
where `:dbms:` is the db you use, and `:migrationName:` is whatever you wish to call it.
The migration must be named a valid Javascript class name.
The migration must be named a valid Javascript class name.
3. The generated file is what TypeORM will do if you were to run `npm run sync:db`.
Obviously, this is not always what you want. Edit it to preserve as much of the original data as possible.

View File

@ -14,7 +14,7 @@ privacy concerns, as an attacker may be able to learn users IP addresses.
To setup Imagor for Fosscord, first grab the `security_requestSignature` config value from Fosscord's database,
and create a `imagor.env` file somewhere safe, with the following content.
**Make sure to edit the file with the correct information**. Your requestSignture should *not* start or end with `"`.
**Make sure to edit the file with the correct information**. Your requestSignture should _not_ start or end with `"`.
```
IMAGOR_SECRET=security_requestSignature value from your Fosscord config

View File

@ -2,4 +2,4 @@
## [When do I have to restart the server?](restart.md)
## [Updating Fosscord-server](updating.md)
## [Updating Fosscord-server](updating.md)

View File

@ -2,17 +2,17 @@
Fosscord-server must restart in the following cases:
* The .env file or config (database or [CONFIG_PATH](/setup/server/configuration) has changed.
* Files in the `client_test`, `preload-plugins` folders of inside `assets` have changed.
* Files inside `src` have changed (*remember to `npm run build`*).
* The `assets/schemas.json` file has changed.
* The [RabbitMQ](/setup/server/configuration/rabbitmq) connection has been lost.
- The .env file or config (database or [CONFIG_PATH](/setup/server/configuration) has changed.
- Files in the `client_test`, `preload-plugins` folders of inside `assets` have changed.
- Files inside `src` have changed (_remember to `npm run build`_).
- The `assets/schemas.json` file has changed.
- The [RabbitMQ](/setup/server/configuration/rabbitmq) connection has been lost.
For all other cases, you do not need to restart the server. For example:
* Running `npm run generate:client`
* Running `npm run generate:changelog`
* Editing any table in the database other than `config`. For example, to edit a `users` [`rights`](/setup/server/configuration/rabbitmq)
* Database connection was lost (this should auto reconnect)
- Running `npm run generate:client`
- Running `npm run generate:changelog`
- Editing any table in the database other than `config`. For example, to edit a `users` [`rights`](/setup/server/configuration/rabbitmq)
- 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.
This is not an exhaustive list. If a change you made is not applied, the first thing you should try is restarting.