deic-dk-retired / gossamer

A single page application for DDoS analytics and mitigation using influxdb and postgresql
8 stars 4 forks source link

finish install scripts #56

Open ashokaditya opened 6 years ago

ashokaditya commented 6 years ago

@loregood @uninth Okay to close this one? Let @TanguiC know about it.

TanguiC commented 6 years ago

It seems there are still some issues. NTH writes: " First, the command from /vagrant/files/install.d/6_install-ddps-node.sh fails, as some one has chosen a password with parentes which pesters the command interpreter so the command

pm2 deploy ecosystem.json production

fails. The command relays on the document /opt/deploy-ddosapi/ecosystem.json which I don't know how to create from .env - please help. If I manually change the file and run

pm2 deploy ecosystem.json production

I get an git error"

ashokaditya commented 6 years ago

@uninth I see that you're trying to create an .env file here 6_install-ddps-node.sh line#7. I forgot to mention that once the command pm2 ecosystem generates a ecosystem.json file, it has to be edited to include these env variables and values. You can either do it manually or automate this with shell script.

Additionally the folder where ecosystem.json resides has to be a git repo. Which is why the install script calls a gist 6_install-ddps-node.sh at line#5 install-gist that I've created which in turn calls another ecosystem gist to clone that has this ecosystem.json file.