luvit/luvit

How to run Luvit 24/7

Closed this issue · 8 comments

I want to be able to run luvit 24/7 on my VPS, so I am wondering if there is anything I can do that works like pm2.

Is there anything wrong with using pm2, it's just a general process manager, but to answer your question, there has not been such a process manager written in Lua

would pm2 work with lua?

All you should need to do is tell it to run luvit instead of node

How would I do that? Sorry, I'm not good with the whole VPS thing.

You should be able to append --interpreter=luvit to your call to pm2 start and it should then use luvit as its interpreter.

Here's something a little more lightweight https://github.com/tj/mon

It's alright, I got pm2 working fine. For some reason the directory on my VPS wasn't registering that luvit was installed.