Deploying a Meteor App to a Server Using Meteor Up

Learn how to deploy a Meteor app using Meteor Up

Meteor Up is used to deploy a Meteor application to our server. Meteor is also referred to as mup. We install Meteor Up by running the command below on the terminal:

npm install --global mup

This command installs Meteor Up globally on our development machine. We must have a server with administrative privileges for us to be able to use Meteor Up.

Creating a Meteor Up project

To deploy our application using Meteor Up, we’ll need to perform the following steps:

  • cd app_folder
  • mkdir .deployment
  • cd .deployment
  • mup init

First, we move into the directory where our application code is located. Next, we make a new hidden directory called .deployment and move into that directory. This .deployment directory contains Meteor Up’s configuration files. Lastly, we run the mup init command. The mup init command creates two configuration files inside the .deployment folder named mup.js and settings.json.

Note: If our development machine is running the Windows operating system, we should run the mup init command as mup.cmd init.

Get hands-on with 1400+ tech skills courses.