Skip to content

Simple reStore configurable bin script #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

lesion
Copy link

@lesion lesion commented Sep 4, 2016

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
Copy link
Contributor

raucao commented Sep 7, 2016

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

@lesion
Copy link
Author

lesion commented Sep 8, 2016

I'm glad you like it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants