Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: Diesel on July 26, 2017, 12:19:47 AM

Title: How to run GunBot 3.3.4 in PM2 Ubuntu
Post by: Diesel on July 26, 2017, 12:19:47 AM
I'm having people ask me how to get the latest GB (3.3.3) running in PM2, so it starts at boot and so you don't have a terminal screen open all the time.

So a refresher on PM2:

Install npm:  https://keymetrics.io/2015/02/03/installing-node-js-and-io-js-with-nvm/ (https://keymetrics.io/2015/02/03/installing-node-js-and-io-js-with-nvm/)

Install PM2: npm install pm2 -g

Start your gunbot using PM2: From  your gunbot folder
         pm2 start ./gunthy-linx64 -n Gunbot_Name -- --color
            Note the -- --color tag at the end? That lets PM2 display the log in the color Gunthar intended!

Save it: pm2 save

Look for your pm2 ID:
         pm2 list

view your log:
         pm2 log 0 (my pid was 0)

That's it for now. More to come as people build monitors and Gunthar adds features and a gui!


Like the tutorial? Tips are greatly appreciated, as is using my referral for CoinTracking:
CoinTracking: Lots of reports, including tax reporting for exchanges and wallets.  It's not cheap, but if you are trading with more than a token amount, give it a try. 10% Off with this referral (and I get some BTC, thank you! https://cointracking.info? (https://cointracking.info?)ref=D416986
BTC: 1DiESeLca4RfbvoUTVUg7NSRn16T3G8YPd    (yes, that's a vanity BTC address  8) )
ETH: 0x4381adfb5e212f2ac2477075b866357b0b69c37b
Title: Re: How to run GunBot 3.3.3 in PM2 Ubuntu
Post by: AlfonseX on July 26, 2017, 02:22:59 AM
What is the advantage to run GB over PM2?
Title: Re: How to run GunBot 3.3.3 in PM2 Ubuntu
Post by: Diesel on July 26, 2017, 03:17:51 AM
I'm used to PM2. It makes it easy to restart automatically, makes it easy to grab logs and run multiple bots too.
Also works well on any linux version, and OSX.
There are other options, but it works. My goal: Auto start, easy restart, easy log and easy process manager.
Title: Re: How to run GunBot 3.3.4 in PM2 Ubuntu
Post by: dobcrypto on August 03, 2017, 01:13:03 PM
how to stop bot?

PS
pm2 stop ./gunthy-linx64
=)