I just went through the process of deploying a Meteor app to Galaxy. It’s not super complicated, but there was a lot of jumping around between different help instructions and a few gotchas along the way. So, I created a step-by-step tutorial for anyone (especially less experience developers) who want to deploy to Galaxy.
One question though — I noticed you only set up MONGO_URL in the galaxy settings. When I’ve used MUPX before it was a requirement to also set MONGO_OPLOG_URL. Do you know if this needs to be set up with Galaxy too?
Thank you for doing this. I wish it was around before I deployed to Galaxy. I think your tutorial is thorough, but if you feel so inclined, I’d add this to the “Your app URL” section (only because it involves more steps).
Where you say…
If you had a custom domain name, you would insert that here.
You could remove that, or change it to…
If you had a custom domain name, you would insert that here. Galaxy support will need to whitelist your app domain, and you will need to point your DNS to galaxy-ingress.meteor.com.
That way, newbies won’t think it’s as simple as just adding it to settings.json.
Anders - This is a great walkthrough guide! Thanks for putting this together and sharing with the community.
We’ll take this feedback and create a more comprehensive guide to deploying to Galaxy that we’ll make available in our materials.
For specific questions here:
Integrating with the Mongo Oplog is used for performance reasons. It’s not a blocking requirement when deploying to Galaxy.
On Windows the cmd terminal requires that DEPLOY_HOSTNAME be defined separately before executing meteor deploy. So the commands would look like this:
$ SET DEPLOY_HOSTNAME=galaxy.meteor.com
$ meteor deploy …
@rohit2b - great to hear! And thanks for the additional pointer re. using Windows. @timfletcher - added a note about the Mongo Oplog URL as well. Thanks again!
Thanks very much for your Guide @andersr. I wish it existed sooner since I’m sure many of us (who wanted to support MDG with their paid hosting service), wasted a lot of time struggling with poor Galaxy instructions.
Here are a couple more points that may be helpful to others:
1. There is a Direct Link to Server Logs
if you have further troubles deploying your app, you can directly access your server logs at:
Maybe it’s just me, but when I saw the mLab read-only setting for username and password, I thought that mLab was asking whether I wanted to deny any incoming web API requests to change the database login credentials, so I set it to true. It turns out that this setting must be for database documents, not the login credentials. Your excellent screenshots helped me realize that the read-only setting must be false (don’t check it). And now everything is working. Thanks again!
Great article @andersr, I’m serving my on galaxy now but I get a bad gateway error when I try opening the app in a browser, according to the galaxy page I need to configure my DNS records to point to galaxy. I’m totally lost at this stage, any help will be deeply appreciated. Thanks
Are you using a custom domain? If so, you need to go to the DNS settings for that domain and create a CNAME record that points to galaxy-ingress.meteor.com
I am trying to deploy to galaxy… . I made a subdomain “www” and added the galaxy-ingress.meteor.com CNAME in the DNS settings …but in my browser, when I go to the app url I get a 404 error saying there is no App registered.
In galaxy, I can see 1 container running with 25% ram being consumed with 0 client so the app is there…kinda lost …any pointers @andersr , @jaclynn
I am confused at the redirecting bit in the domain manager. I have two option :