jcoglan / restore

Simple remoteStorage server written in Node.js
293 stars 27 forks source link

Simple reStore configurable bin script #40

Open lesion opened 8 years ago

lesion commented 8 years ago

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
raucao commented 8 years ago

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

lesion commented 8 years ago

I'm glad you like it :)