Deploy a new app using the command line

Galaxy simplifies deploying, scaling, and monitoring your Meteor application. This guide offers step-by-step instructions for deploying your app with the Meteor command line.

Deploy a new app

Use the Meteor CLI to deploy applications to Galaxy. Ensure you're logged into a Meteor Developer Account with Galaxy deployment permissions. Verify your login status using the command meteor whoami.

To deploy your Meteor app, run this command inside your app's directory:

meteor deploy [hostname]

Example:

meteor deploy simpletasks.meteorapp.com

This command deploys your app to the US East region with the Essential plan and Tiny container size.

To deploy with the free plan and use our Shared MongoDB Cluster, use:

meteor deploy simpletasks.meteorapp.com --free --mongo

Learning more

Available Regions

Your DEPLOY_HOSTNAME varies by region:

  • US East: DEPLOY_HOSTNAME=galaxy.meteor.com

  • EU West: DEPLOY_HOSTNAME=eu-west-1.galaxy.meteor.com

  • Asia-Pacific: DEPLOY_HOSTNAME=ap-southeast-2.galaxy.meteor.com

Choose a Hostname

For easy access to your application, pick a public hostname. Use either a custom domain or the provided *.meteorapp.com domain.

Using the Provided Domain:

  • For US East region apps, format as <hostname>.meteorapp.com.

  • For EU West region apps, format as <hostname>.eu.meteorapp.com.

  • For Asia-Pacific region apps, format as <hostname>.au.meteorapp.com.

Using a Custom Domain:

  • Point your DNS to galaxy-ingress.meteor.com. Find detailed DNS configuration instructions here.

Mac and Linux
In your application’s directory via the command line, enter:

  • Replace [hostname] with your application’s domain name (e.g., www.yourappname.com).

  • Replace path-to-settings.json with the path to your settings file (e.g., ./settings.json).

Windows
On Windows, set the environment variable first and then deploy:

  1. Set environment variable:

  2. Deploy your app: