I run a server with a number of Meteor apps on nginx and Passenger. Changing from development mode to production mode was essential to get it running stable. But building and rolling out a new app is a task with more than one step, and so I created a shell script to automate this. Finally, I use this script to update an app by pushing into the local Git repository – the first step towards Continuous Integration.
Today, I extended the script to take care of the node version. One of my applications uses a package, which doesn’t work with a recent Meteor/node version, so I had to extend the script to retrieve the correct node version, depending on the used meteor version.
I took this extension as possibility to document the script and provide it to the public: https://github.com/qnipp/meteor-repository-build
Feel free to use it in your own installation.