By Ly Nguyen on July 25, 2016
Deploying a Meteor app, however bears a strong resemblance to deploying other kinds of software, is much easier, especially when you are familiar with working on websocket-based Node.js app. Since it is a must to bring your app into play after all of your effort to develop, I would love to dig deep into what you should take into consideration before deploying. In this blog, I am going to list some of essential stuff like this, including deployment environments, variables, domain name, SSL certificate and CDN.
Deployment environments in Meteor includes three server tiers that are Development, Staging and Production:
Deployment environments are explained in great detail at:
Make sure environment variables and settings all are available for your deployment process.
One reliable destination for getting variables is https://nodejs.org/api/process.html#process_process_env
meteor run --settings settings.json.
or put it into the METEOR_SETTINGS environment variable.
Remember to register a domain name for your site, so that users can access to your site. Then, it is absolutely necessary for you to generate an SSL (Secure Sockets Layer) certificate.
CDN (Content Delivery Network or Content Distribution Network), in spite of being optional, should be set for your site. With CDN, content and images will be delivered to end-users with a high quality and high performance
Read more at https://guide.meteor.com/deployment.html#cdn.
That brings me to the end of this blog. In the next blog, I am going to show you How to deploy a Meteor app in reality. Stay in touch and I will keep you updated.
Leave Comment