restore icon indicating copy to clipboard operation
restore copied to clipboard

Simple reStore configurable bin script

Open lesion opened this issue 8 years ago • 2 comments

Hope this helps someone !

$ npm install -g restore

$ reStore -h
usage: reStore [-h] [-v] [-c CONF] [-e]

NodeJS remoteStorage server / 0.3.0

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -c CONF, --conf CONF  Path to configuration
  -e, --exampleConf     Print configuration example


$ reStore -e
{
  "allow_signup": true,
  "storage_path": "/usr/share/reStore",
  "cache_views": true,
  "http": {
    "host": "127.0.0.1",
    "port": 8000
  },
  "https": {
    "enable": false,
    "force": false,
    "port": 4443,
    "cert": "/etc/letsencrypt/live/example.com/cert.pem",
    "key": "/etc/letsencrypt/live/example.com/privkey.pem"
  },
  "baseURL": ""
}

$ reStore -e > reStore.conf.json
$ # edit as you need 
$ reStore -c reStore.conf.json
[INFO] Starting remoteStorage: http://127.0.0.1:8000

lesion avatar Sep 04 '16 15:09 lesion

This is really cool! Worked like a charm, when I just tried it out.

raucao avatar Sep 07 '16 11:09 raucao

I'm glad you like it :)

lesion avatar Sep 08 '16 22:09 lesion