howto maintain your cryptpad instance

This commit is contained in:
ansuz 2016-03-04 12:14:40 +01:00
parent 0327fbc874
commit 3539c71c07
1 changed files with 32 additions and 0 deletions

View File

@ -34,6 +34,38 @@ To install:
node ./server.js
## Maintenance
To get access to the most recent codebase:
```
cd /your/cryptpad/instance/location;
git pull
```
To update dependencies:
```
# clientside dependencies
bower update;
# serverside dependencies
npm update;
```
To reset your instance of Cryptpad and remove all the data that is being stored:
If you are using the leveldb adaptor, this is as simple as deleting the folder which contains your leveldb datastore:
```
# change into your cryptpade directory
cd /your/cryptpad/instance/location;
# delete the datastore
rm -rf ./cryptpad.db
```
If you are using the mongodb adaptor, [drop the relevant collection](https://docs.mongodb.org/manual/reference/method/db.collection.drop/#db.collection.drop).
## Security