Homepage › Forums › RetroPie Project › Peoples Projects › No more gamepad ? Why not use the phone ? › Reply To: No more gamepad ? Why not use the phone ?
04/01/2015 at 21:23
#93395
miroof
Participant
Hi Herbfargus,
Thanks a lot for the explanations :)
To launch a node.js application at startup, I use the amazing project pm2:
https://github.com/Unitech/pm2
Simply run these commands:
# Install globally pm2
sudo npm install pm2 -g
# Launch virtual gamepads application with pm2
sudo pm2 start main.js
# Configure pm2 to launch at startup
sudo pm2 startup
# Save the current state of pm2
# to reload all current applications at startup
sudo pm2 save
Normally it should launch the application again at startup. PM2 will also relaunch automatically the application in case of crash.
I highly recommand it for all node.js projects !
@zombiebraut I hope it’s OK for you now ?
Miroof