Setup a Digital Ocean server using Meteor Up
This page documents the process of setting up a digital ocean server for RadGrad based upon Meteor Up.
Sign up with Digital Ocean
First, go to Digital Ocean. Using this link might get you a "Free Credit Active" link that will get you some free minutes.
Create an Ubuntu server (i.e. Droplet)
Click on the "Create" button and select a Droplet (Ubuntu server). Create a root password and save it someplace safe.
Configure app/.deploy/mup.js
Copy the sample.mup.js file to mup.js. It will look something like this:
There is one occurrence of the string “changeme”, and two occurrences of the string “111.222.333.444”.
Change the string “changeme” (i.e. the server root password) to the Droplet root password you specified above.
Change the string “111.222.333.444” to the IP address associated with this Droplet. (In the screenshots above, the Droplet’s IP address is 167.172.222.158.) Be sure to use the “ipv4” address, not the “Private IP” address!
Note that the “host” value is just the IP address, but the ROOT_URL is “http://” followed by the IP address.
Configure app/.deploy/settings.js
Copy sample.settings.js to settings.js. Edit this file to include appropriate credentials and other information specific to your deployment.
Run mup setup
Inside the app/.deploy directory, invoke “mup setup” (or “mup.cmd setup” on Windows). You should get output like the following:
For more details on the setup command, see http://meteor-up.com/docs.html#setting-up-a-server.
Run mup deploy
Now you can bundle up your Meteor application, send it over to the Droplet, and start it running on your Droplet.
Inside the app/.deploy directory, invoke “mup deploy” (or, on Windows “mup.cmd deploy”). You should get output like the following:
For more details on the deploy command, see http://meteor-up.com/docs.html#deploying-an-app.
After deployment finishes, the app should be live.
Check status of deployment through logs
To ensure that what you wanted to have happen actually happened, check the logs with mup logs:
Sample invocation and results:
Note that when you start up the system with a new database, a new admin password will be generated and the log file will be the only place it is made available.
Setup SSL and HTTPS
You will probably want to buy a custom domain name and then setup SSL so that you can access the RadGrad instance using https. For instructions, please see How to setup HTTPS.