Recently I’ve decided to learn Meteor JS, which is an “open-source platform for building top-quality web apps in a fraction of the time.” It’s super fast (i.e. great for hackathons) to get an application up and running. I’ve only been using Meteor for a couple of days but love it so far and possibly will consider using it instead of my current favorite Play Framework.
One issue I encountered when deploying my application to production was that once I started the app on my server using “meteor &” I noticed the application would die after I exited the terminal. This is actually a common “issue” in the NodeJS world and many posts have suggested the use of the NPM Forever tool for running a Meteor bundle even when you exit the terminal session. One StackOverflow post showed the following commands:
Unfortunately this didn’t work for me but bsilvereagle from the Meteor IRC channel suggested I create a tmux session, start my Meteor server in it, and detach the session. So, you would roughly run the following commands:
Now Meteor will run even if I exit from my terminal. Yay!
Hopefully this helps someone out there but here’s a couple more tmux resources: