Hypertopic / HyperGlosae

A Nelsonian hypertext infrastructure for digital humanities
11 stars 21 forks source link

The backend code should be built and pushed with `couchdb-push` instead of `couchapp` #198

Open benel opened 5 months ago

benel commented 5 months ago

Among other reasons, the idea would be to use less disk space on developers' (esp. students') computers.

couchapp container couchdb-push
900 MB 21 MB
benel commented 5 months ago

For the design document

Add a file named _id in backend/srcwith the following content:

_design/app

Then you can push the backend code with:

npx couchdb-push http://TO_BE_CHANGED:TO_BE_CHANGED@localhost:5984/my-app backend/src

For samples

You can push all sample documents with:

for f in samples/* ; npx couchdb-push http://TO_BE_CHANGED:TO_BE_CHANGED@localhost:5984/my-app $f

But this is really slow! It seems that it could be replaced: