- Development deployment: https://sync-dev.meth.app (in-memory db)
- Production deployment: https://sync.meth.app (persisted filesystem db)
This uses express-pouchdb to expose a sync endpoint for PouchDB.
dev- Default branch, where latest development takes place, deployed tohttps://sync-dev.meth.appmaster- Production branch, deployed automatically via Travis CI, deployed tohttps://sync.meth.app
Note: Developed and tested with Node 8.10.0
Two running modes:
development: (default) the process uses an in-memory PouchDB.production: uses the externally hosted production CouchDB instance.
By default it runs in development mode:
$ yarn devTo get HTTP request logging into /tmp/meth-express-pouchdb.log:
$ DEBUG=1 yarn devRemember to switch to the Meth team using now switch.
### Development
Deploy to https://zeit.co/now and note the deployed endpoint:
$ yarn deploy:devEnter the deployed endpoint URL into your meth-browser app config (see the browser repo README for instructions).
The production deployment needs to connect to our hosted production CouchDB instance. The following secret variables thus need to be setup:
$ yarn now secret add couchdb_url <...URL...>
$ yarn now secret add couchdb_username <...username...>
$ yarn now secret add couchdb_password <...username...>Once this is done, do:
$ yarn deploy:prodNow alias to our domain name:
$ yarn now alias <...url to deployment...> meth.appOnce done the deployed backend should be accessible at https://meth.app