Galaxy makes it simple to deploy, scale, and monitor your Meteor app. This quickstart guide will walk new users through deploying your first app. It is the abridged version of the comprehensive guide aimed at developers who have experience deploying apps with remote databases.
Get your app ready
Deploy your app
The value of DEPLOY_HOSTNAME will depend on which region you are deploying to:
To deploy to US East: DEPLOY_HOSTNAME=galaxy.meteor.com
To deploy to EU West: DEPLOY_HOSTNAME=eu-west-1.galaxy.meteor.com
To deploy to Asia-Pacific: DEPLOY_HOSTNAME=ap-southeast-2.galaxy.meteor.com
The region you deploy to will affect the URL of your dashboard. If your username is devname, you’ll see your US East apps at https://galaxy.meteor.com/devname, your EU West apps at https://eu-west-1.galaxy.meteor.com/devname, and your Asia-Pacific apps at https://ap-southeast-2.galaxy.meteor.com/devname.
Mac and Linux
On the command line, within your app’s directory, type:
DEPLOY_HOSTNAME=[region] meteor deploy [hostname] --settings [filepath.json]
regionis ‘galaxy.meteor.com’ for US East, ‘eu-west-1.galaxy.meteor.com’ for EU West, and ‘ap-southeast-2.galaxy.meteor.com’ for Asia-Pacific
hostnameis the fully qualified domain name where you’re planning to host your application (for example, ‘www.facebook.com').
filepath.jsonis the path to your settings file (for example, ‘./settings.json’).
If you are using Windows, the commands to deploy are slightly different. You need to set the environment variable first, then run the deployment command second (the syntax is the same as everything you’d put for meteor deploy).
In the case of US East, the commands would be:
$ SET DEPLOY_HOSTNAME=galaxy.meteor.com
$ meteor deploy [hostname] --settings path-to-settings.json
Configure your app
Once your app is successfully deployed, head on over to the US East dashboard; EU West dashboard or Asia-Pacific dashboard to configure your app by adding a custom domain name and enabling SSL encryption.
Add a domain in your app’s settings and point your DNS to
galaxy-ingress.meteor.com for the US East region,
eu-west-1.galaxy-ingress.meteor.com for the EU West region, or
ap-southeast-2.galaxy-ingress.meteor.com for the Asia-Pacific region.
How Billing Works
You’re only billed when you have an app running. Keep running your app for as long as you want and pay-as-you-go at low metered rates. Simply “Stop” your app on the Settings page and billing will stop. Your app’s code and settings are preserved until you’re ready to run it again.
You can see your bills in your account’s Settings page and read more about billing in our billing article.