BeerK0in / generator-gunbot

Setup and manage GUNBOT x3 on Linux.
MIT License
32 stars 20 forks source link

Support for multiple installs on single device #26

Open cryptowally opened 7 years ago

cryptowally commented 7 years ago

Currently, generator-gunbot is hardcoded to basically only support single installation on a box because it installs to /opt/gunbot. I'd like to be able to install multiple sets, so I'd like either a command line option or an option in the query to ask where to put the files.

pm2 or .pm2 directory as well - those files, if possible, should be redirected.

If pm2 cannot coexist in multiple places, then maybe we have to make different users for each set of gunbot pairs we want to run, but at least we shouldn't have to hard-code to /opt/gunbot.

BeerK0in commented 7 years ago

Hey cw,

right now there are no plans to update this generator any more. The node ecosystem, the possible VPS OS'es and the Gunbot itself are evolving so fast, it is too much effort for me to maintain this project. Since I made some decisions when starting this tool, I would not do anymore, I would want to rewrite the whole generator.

I do use the generator to manage multiple bots on one machine. I just create the folders, cd into it, copy the gunbot executable, and run yo gunbot init to create all the needed files.

I don't use the root user, and don't let the generator start the pairs. I have a script to name all the created trade pairs with a suffix to be able to read the pm2 l. (Like BTC_ETC_Bittrex1, BTC_ETC_Bittrex2, BTC_ETC_Kraken1, ...)