Hosting
Hosting your experiment on Meteor Galaxy so that people can access it and participate in it.

How do I deploy my app to Galaxy?

Galaxy (also called Meteor Cloud) is a hosting service provided by Meteor. For a full guide on deploying to Galaxy, see here.

Registering and logging in

The first step is to register an account with Meteor Galaxy. Please take note of the fees involved in hosting with Galaxy.
Then, in your app's command line, you should log into your Meteor Galaxy account with:
1
meteor login
Copied!
It will then prompt you for your username and password.
To see which account is currently logged into your app you can type:
1
meteor whoami
Copied!

Hostname

A hostname is the name that the public will use to access your app.
Part of the hostname is the domain name. You can use a custom domain name if you own one, or use one of those offered by Galaxy.
If you are using the offered domain, use:
    .meteorapp.com for apps deployed to the US East region
    .eu.meteorapp.com for apps deployed to the EU West region
    .au.meteorapp.com for apps deployed to the Asia-Pacific region
For example, a complete hostname with a Galaxy offered domain could be: my-game-study-example.meteorapp.com
This, combined with https:// is the link you will send players for them to access your app.

DEPLOY_HOSTNAME

You will need to enter a DEPLOY_HOSTNAME variable depending on your location:
    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

Deploying

Once you have selected a hostname and a DEPLOY_HOSTNAME variable, you need to type the following commands to deploy your app to Galaxy with your settings file.
Linux, Mac, Windows with WSL
Windows without WSL
1
DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy [hostname] --settings settings.json
Copied!
1
SET DEPLOY_HOSTNAME=galaxy.meteor.com
2
meteor deploy [hostname] --settings settings.json
Copied!
Note that deploying an app takes a few minutes!
Once it is done, you can go to https://galaxy.meteor.com/ to check on your apps. You can inspect their logs and modify their settings.
If you run the commands to deploy the app again, it will redeploy the app with any changes you have made since your last deployment.

What should the scale of my hosting service be?

The size of the Galaxy hosting is determined by containers of different size. You can have multiple containers of the same size. This will determine how many players and games can co-occur on your deployed app. Please take note of the fees involved in hosting with Galaxy.
You may be able to get a single Tiny container for a free plan (check your Meteor Cloud/Galaxy account). However, the Tiny containers will be insufficient for collecting data. You will want bigger containers. The exact size depends on how many players will be using your app concurrently an how demanding your app is. The most basic way of finding out the right size for you is to test your deployed app with different containers whilst monitoring the CPU usage.
Last modified 4mo ago