For this experience, you will learn how to deploy a sample Meteor app to Galaxy in three steps.
Please follow the Step by Step reading, and observe the following issues with the six steps:
Create a Meteor app. Use one of your tutorial apps.
Sign up for Galaxy. Unlike in the Step-by-Step tutorial, you do not have to sign up for Galaxy as an individual and provide your credit card for this class. Instead, login to https://galaxy.meteor.com/ics414s16 with your Meteor account. That organization has been provisioned by the Meteor Development Group (thank you!) for this class with five free containers (One per team, plus one for me).
Add a MongoDB Database. Follow the instructions.
Add a db user. Follow the instructions.
Create a settings file for galaxy deployment. For starters, if you haven’t already, make sure your app uses the default directory structure (app/, doc/, and config/) as presented last semester with meteor-application-template. (Note this app’s code is not yet updated to Meteor 1.3). Then, put the settings.json file in the config/ directory. Because the settings.json file contains sensitive information (i.e. the MongoDB username and password in clear text), if this was a production app you would want to add that file name to your .gitignore to make sure it does not get committed to GitHub.
Deploy the app to galaxy. An important change to this section is to add --owner ics414s16
to the deploy command so that the app is deployed to our organization, not to your personal account. Here’s what the full command looks like for me:
DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy testdeploypmj.meteorapp.com --owner ics414s16 --settings ../config/settings.json
Once you have successfully deployed your app, go to https://galaxy.meteor.com/ics414s16. This page should show your deployed app as follows:
Notice that the app is on the left side and the Activity pane says “philipmjohnson deployed testdeploypmj.meteorapp.com”.
Now take a screenshot of this page to show your deployed app, and post it to the #deployment Slack channel.
Finally, bring up your sample app in a web browser to verify that it works as expected.
Our organization only has five containers, so you can’t leave your test deployment hanging around. Instead, once you’ve created your screenshot, you should delete your app from Galaxy.
To do this, click on the name of your app to bring up the following page:
Then click on “SETTINGS” to bring up a page that enables you to delete the app (see bottom of page):
Go ahead and click the “DELETE” button to delete your test app.
By the date and time indicated on the Calendar page, please finish all three steps. Make sure to post your screenshot to the #deployment channel.