There are many ways to deploy an application to the web. Some of them are easy and some of them are not so easy. One of the main ways I have been deploying my apps is with Meteor Up(MUP for short), which offers a super simple setup and deployment process. My hosting provider for all of my meteor apps is Digital Ocean. They have such an easy service to use and it’s pretty cheap. Well spent money on testing meteor apps.

Starting off you’ll want to create a fresh server with Digital Ocean or whatever hosting service you might use. If you already have a server that you want to deploy to, it shouldn’t be a problem, just make sure that the MUP deployment process does not conflict with anything that is currently installed.

Create an App

You can create one of Meteor’s sample apps by running the following command, or if you already have something you want to deploy you can go ahead and skip this step.

meteor create --example todos

Setting up MUP

Make sure that MUP is installed by running the command:

npm install -g mup

Once you know that MUP is installed you can initialize an empty project by running the command:

mup init

This will not work for existing projects for some reason and I wish it did, but just create a mup.json file in your existing project

To setup mup on your server you will need to run:

mup setup

Deploy Your App

MUP practically takes care of everything for you, just as much as “meteor deploy” does when deploying to meteor.com. Deploying your app to your server is as easy as running “mup deploy”

mup deploy

This will run a deploy script and your app will be live within seconds.

You’re All Done

While there are better ways to deploy your app, this is probably by far the easiest if you want to deploy an app quickly to a server. You can read more about MUP on their github page and find out how to use it to it’s full potential. Thanks for reading and be sure to checkout Digital Ocean for free $10 in credits after you spend a total of $25.