Gekko Forum
Running gekko in the background with PM2 - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Guides (https://forum.gekko.wizb.it/forum-22.html)
+--- Thread: Running gekko in the background with PM2 (/thread-1479.html)

Pages: 1 2 3


RE: Running gekko in the background with PM2 - ankasem - 05-21-2018

Thank you
@ monty
****************************************
edit
****************************************
Automatically start your application on boot Pm2   [Image: smile.png] 
start application first

pm2 start gekko.js -n "xxxxxx1" -- -c config.js

then apply this command

pm2 startup systemd

Now if your Node.js application crashes due to an error it will restart, and if Ubuntu crashes for any reason, the process will automatically restart with Ubuntu. The processes can be restarted


to stop
pm2 unstartup systemd


RE: Running gekko in the background with PM2 - whoodat - 05-21-2018

PM2 is amazing, this is seriously awesome...the more I learn the more I love gekko....


RE: Running gekko in the background with PM2 - pingywon - 05-21-2018

(05-21-2018, 06:48 PM)monty Wrote:
(05-21-2018, 06:03 PM)pingywon Wrote:
(05-21-2018, 02:50 AM)ankasem Wrote: @ Sirtificate
thank you

We started as pm2 cli
ubuntu server is down
when ubuntu server is opened
How to start pm2 at boot time

I am rather sure this user is asking how to get gekko to auto run at boot. I have the same question. Can anyone help?

https://github.com/askmike/gekko/wiki/Gekko-Background-Service-With-Systemd

That did not seem to work for me for some reason. No errors everything looks good - but it simply doe not work :*(


RE: Running gekko in the background with PM2 - monty - 05-22-2018

(05-21-2018, 09:16 PM)pingywon Wrote:
(05-21-2018, 06:48 PM)monty Wrote:
(05-21-2018, 06:03 PM)pingywon Wrote:
(05-21-2018, 02:50 AM)ankasem Wrote: @ Sirtificate
thank you

We started as pm2 cli
ubuntu server is down
when ubuntu server is opened
How to start pm2 at boot time

I am rather sure this user is asking how to get gekko to auto run at boot. I have the same question. Can anyone help?

https://github.com/askmike/gekko/wiki/Gekko-Background-Service-With-Systemd

That did not seem to work for me for some reason. No errors everything looks good - but it simply doe not work :*(
check this:


RE: Running gekko in the background with PM2 - ankasem - 05-23-2018

Automatically start your application on boot Pm2   Smile
start application first


Enter gekko folder

pm2 start gekko.js -n "xxxx1" -- -c config.js

then apply this command

pm2 startup systemd

Now if your Node.js application crashes due to an error it will restart, and if Ubuntu crashes for any reason, the process will automatically restart with Ubuntu. The processes can be restarted


to stop
pm2 unstartup systemd


RE: Running gekko in the background with PM2 - zubairkhanzhk - 09-05-2018

Helpful thread,
I agree entirely with you susitronix,
But VPN must be reliable and fast because most of the VPN slow the speed of your internet. That is why I recommend Ivacy VPN for more about ivacy you can check this in-depth review ivacy.


RE: Running gekko in the background with PM2 - goodderek - 01-02-2019

[quote pid='1906' dateline='1518539423']
 
[/quote]

@ Sirtificate 
Thank you very much for this helpful tools.
May I ask how  do you manage each profit calculation in this mode?Only check the log? 
Thanks in advance.


RE: Running gekko in the background with PM2 - Kris191 - 02-21-2019

any advice on how to set this up for multiple gekkos say 50? i want to mod gekko to give me signals rather than trade and i need to have gekko run on all my pairs. with pm2 do this efficiently? is so how do i create a list or start up gekko commands?


RE: Running gekko in the background with PM2 - ankasem - 02-21-2019

Enter gekko folder

folder names will be different


sample
cd a1
pm2 start gekko.js -n "a1" -- -c config.js

cd b1
pm2 start gekko.js -n "b1" -- -c config.js

run all
exit master root
pm2 startup systemd      ( if resets to re-work )


RE: Running gekko in the background with PM2 - Kris191 - 02-22-2019

Thank you.

Would i need a separate folder or could i juat use different config files?
Example
config1
config2
etc