Deploying a new app using Push to Deploy
Learn how to deploy on Galaxy by setting up Push to Deploy, which is the easiest and fastest way to deploy your Meteor app. If you want to deploy using our CLI, you can find out how to do so on this page.
Sign up for Meteor Cloud
To deploy your apps, you need a Meteor Cloud account. If you don’t have one yet, you can sign up here.
Deploy a new app
Begin by accessing your Meteor Cloud account. On your home page, you can see the section “Ready to deploy a new app?” and click on “Deploy new app”.
Import Git Repository
You will be taken to the app configuration page:
Choose the Git Repository (GitHub, Bitbucket, or GitLab) where your app is located. An authentication popup will appear, letting you select the account or organization to grant access. You don't need to provide access to all your repositories, but you can adjust permissions later in GitHub/Bitbucket/GitLab to add more repositories.
Pick a Repository
After linking your git provider, you'll move to the second step automatically. Select your Git Account from your Git provider, then pick a repository containing the Meteor app you wish to deploy.
Now, click "Next Step" to reach the third and final step.
Final Settings & Deploy
In this final step, finalize your settings to deploy your app. Select the Meteor Account to determine which Galaxy (Meteor Cloud) account your app will deploy to. Next, choose the Plan & Container Size you wish to use. Details about the plans are available on our[ pricing page.](https://www.meteor.com/cloud/pricing)
We advise you not to use the Free plan for production applications, as it offers a limited container that shuts down when your app is inactive.
Next, select a** Region**. Make sure your database is in the same region to avoid latency and improve your app's speed. Then, choose your App URL (hostname) and the domain for your app.
On the free plan, you're required to use meteorapp.com as the main domain and specify a subdomain. With a paid plan, any domain is allowed. If you opt for a custom domain, you must set up your DNS; learn how here. For paid apps, you also have the option to use meteorapp.com and only specify a subdomain, allowing you to configure your DNS later.
Deploy Options
In the "Deploy Options" section, select the amount of memory for app deployment under Build Container RAM and choose your deployment branch. Any commit to this branch will automatically trigger a new deployment.
You also have the option to use our Free Shared MongoDB Cluster, which is recommended only for testing, not for production apps.
With everything set, click on "**Deploy App**" to launch the first version of your app! :tada:
You can also follow along to learn about the Advanced Options.
Advanced Options
Under "Advanced Options," you can configure:
Meteor Settings: Set initial app settings in JSON format for deployment.
Root Directory: Indicate the Meteor app's root in your repository.
Pre Deploy Command: Use this command, typically "meteor npm install --production," to install app dependencies.
Deploy Arguments: Provide additional arguments for your deploy command.
Environment Variables: Specify variables, like deployment region, for your app.
Sign up for Meteor Cloud
To deploy your apps, you need a Meteor Cloud account. If you don’t have one yet, you can sign up here.
Deploy a new app
Begin by accessing your Meteor Cloud account. On your home page, you can see the section “Ready to deploy a new app?” and click on “Deploy new app”.
Import Git Repository
You will be taken to the app configuration page:
Choose the Git Repository (GitHub, Bitbucket, or GitLab) where your app is located. An authentication popup will appear, letting you select the account or organization to grant access. You don't need to provide access to all your repositories, but you can adjust permissions later in GitHub/Bitbucket/GitLab to add more repositories.
Pick a Repository
After linking your git provider, you'll move to the second step automatically. Select your Git Account from your Git provider, then pick a repository containing the Meteor app you wish to deploy.
Now, click "Next Step" to reach the third and final step.
Final Settings & Deploy
In this final step, finalize your settings to deploy your app. Select the Meteor Account to determine which Galaxy (Meteor Cloud) account your app will deploy to. Next, choose the Plan & Container Size you wish to use. Details about the plans are available on our[ pricing page.](https://www.meteor.com/cloud/pricing)
We advise you not to use the Free plan for production applications, as it offers a limited container that shuts down when your app is inactive.
Next, select a** Region**. Make sure your database is in the same region to avoid latency and improve your app's speed. Then, choose your App URL (hostname) and the domain for your app.
On the free plan, you're required to use meteorapp.com as the main domain and specify a subdomain. With a paid plan, any domain is allowed. If you opt for a custom domain, you must set up your DNS; learn how here. For paid apps, you also have the option to use meteorapp.com and only specify a subdomain, allowing you to configure your DNS later.
Deploy Options
In the "Deploy Options" section, select the amount of memory for app deployment under Build Container RAM and choose your deployment branch. Any commit to this branch will automatically trigger a new deployment.
You also have the option to use our Free Shared MongoDB Cluster, which is recommended only for testing, not for production apps.
With everything set, click on "**Deploy App**" to launch the first version of your app! :tada:
You can also follow along to learn about the Advanced Options.
Advanced Options
Under "Advanced Options," you can configure:
Meteor Settings: Set initial app settings in JSON format for deployment.
Root Directory: Indicate the Meteor app's root in your repository.
Pre Deploy Command: Use this command, typically "meteor npm install --production," to install app dependencies.
Deploy Arguments: Provide additional arguments for your deploy command.
Environment Variables: Specify variables, like deployment region, for your app.
Updated on: 26/06/2024
Thank you!