alabid / flylatex

FlyLatex: A Realtime Collaborative Environment (with a concurrent editor) in node-js.
766 stars 85 forks source link

Add Initscripts #26

Closed dkriesel closed 11 years ago

dkriesel commented 11 years ago

First: Thanks for the great app, man. There is one little thing that would make things a bit more convenient: I am heavily missing an initscript in order to use flylatex as a daemon without a fuss. Or did I just miss something?

alabid commented 11 years ago

Hey @dkriesel, I didn't want to put initscipts because: i) There's already a "config" file where the user can modify his environment. ii) I didn't want to "hard-code" the mongod dbpath nor the starting nodejs file. The user should be able to specify any dbpath or nodejs starting file (anything.js instead of app.js) and still be able to start the node server via:

node anything.js

iii) Only 2 processes need to be started up to run flylatex. Easy enough, I think.