mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
cd0060f565
commit
f952f037e8
@@ -28,14 +28,6 @@ If you want to use Google Analytics, have a look at ```analytics.example.js``` i
|
||||
|
||||
If you have run the server before the table-structures where added, please run ```node server/apps/rewrite.js```. This will fix any crashes that occurs because of faulty document-collectionnames due to moving channel-settings to a separate collection.
|
||||
|
||||
Run
|
||||
```
|
||||
db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X });
|
||||
db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y });
|
||||
db.api_links.createIndex({ "createdAt": 1 }, { expireAfterSeconds: 86400 });
|
||||
```
|
||||
in mongo to have chat_logs and api be deleted after X and Y seconds.
|
||||
|
||||
Use ```$ npm start``` to start the server. (Alternative you can use the ```pm2.json``` in the project-root, if you prefer pm2 for running the apps.)
|
||||
|
||||
More info in <a href="https://github.com/zoff-music/zoff/blob/master/server/README.md">server/ README</a>
|
||||
|
||||
Reference in New Issue
Block a user