How to run meteor in production on Cent OS?


#1

I am building an enterprise software that will be primarily consumed on the web. I am wondering how I can deploy the meteor project to my production server that is a Cent OS Linux machine.

I currently run it using the following command:
nohup meteor &

The above method has the following issues:

  1. Meteor frequently crashes without emitting any error message. Typically I have noticed it when more than 1 person is accessing the server.
  2. I can’t run it using forever or upstart since it is not executing as a node service.

The closest that I came to deployment was using ‘mup’ which unfortunately only works with Ubuntu.

I tried the ‘meteor build’ command, but that requires me to specify the path to ANDROID_HOME and to the Android SDK which I don’t intend to use.

Has anyone successfully deployed toan RHEL server?

Any pointers would be helpful.

regards,
Arpan Dhandhanai


#2

Unless I’m mistaken, then the Android SDK is only required if you have added an “Android platform” to build


#3

I definitely did not I add an “android platform” intentionally. Is there a way to confirm that it is not been added?


#4

Try running meteor list-platforms and see what it outputs


#5

I am testing this with the generic leaderboard app. list-platforms renders the following output:
browser
server


#6

You can check out my fork of mup for CentOS 7, mplz (uses pure systemd). The /scripts directory might help you.