... | @@ -6,10 +6,31 @@ |
... | @@ -6,10 +6,31 @@ |
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
# Using Ubuntu
|
|
|
|
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
|
|
npm install -g pm2
|
|
npm install -g pm2
|
|
|
|
|
|
npm install -g @creek/sync-cli
|
|
npm install -g @creek/sync-cli
|
|
|
|
|
|
|
|
pm2 start @creek/sync-cli -- \
|
|
|
|
--domain=DOMAIN_GOES_HERE \
|
|
|
|
--key=API_KEY_GOES_HERE \
|
|
|
|
--path=PATH_GOES_HERE
|
|
|
|
|
|
|
|
#https://stackoverflow.com/questions/28980307/how-to-pass-arguments-to-app-using-pm2
|
|
|
|
|
|
|
|
pm2 start @creek/sync-cli -- --domain=xray.fm --key=GvMuoOkKTFIoWnsAiZDn --path=/creek/files
|
|
|
|
|
|
|
|
|
|
|
|
adduser --disabled-password --gecos "" creek
|
|
|
|
|
|
|
|
sudo adduser creek sudo
|
|
|
|
|
|
|
|
echo "creek ALL=(ALL:ALL) NOPASSWD: ALL" | sudo env EDITOR="tee -a" visudo
|
|
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
1. Get your API key from your Control Panel.
|
|
1. Get your API key from your Control Panel.
|
... | | ... | |