Let’s Encrypt SSL, Nginx, MUP → Deployment (Meteor) Let’s start by generating Let’s Encrypt free SSL certificate: Add a A Record in your domain’s DNS Settings Setting up Let’s Encrypt ssh into your server console and run following commands $ wget chmod a+x certbot-auto$ .
/certbot-auto certonly -d yourdomain.com --standalone After successful execution of the last command you can see the your Certificate & Key generated in /etc/letsencrypt/yourdomain.com Setting up Nginx Let’s install nginx which will be our proxy server $ sudo apt-get install nginx Use nano to create / edit your domain’s nginx settings: $ sudo nano /etc/nginx/sites-enabled/yourdomain.com.conf Below is the code that tells the server what to do. Now is time to check your nginx settings. . $ sudo nginx -t. Best of breed version of mup(x)? - help - Meteor forums. Okay.
The hardest part is getting the right files from the certificate provider and knowing which is which. I'm assuming you've got a SSL certificate (for guzz.io) and so you have three files available that correspond to: ssl.pem ssl.key trusted.pem If you have those right, the rest should be easy enough. By way of reference, ssl.pem should have: with possibly one or two of these in the middle of the random letters and numbers: (i.e. it might be several certificates concatenated together) trusted.pem should be similar, but just a single certificate, i.e ssl.key should be something like this: Now, here are the commands to issue on the (Ubuntu 16) server as a user with sudo privileges: Between reality and cyberspace: Running your meteor.js application on your own... Deploying a Meteor 1.1 App on Amazon EC2 with a custom domain — All About MeteorJS. Deploying a Meteor 1.1 App on Amazon EC2 with a custom domain Most of the top Google searches were outdated / incomplete / assumed more knowledge than someone doing this for the first time would have.
Will outline complete steps below so you don’t have to spend 3 hours and 3 faulty installations figuring it out too ☺ Also! All free! (Minus the custom domain but you don’t have to have use one.) Preview: EC2, Elastic IP, and mup(meteor-up). Log into your AWS account (or create one!) My first rule was only my IP could SSH into the instance. My second rule was anyone(“Anywhere”) could access it over HTTP. Review Instance Launch. 2. If you are not setting up a custom domain move onto 3. In the left side nav under “Network & Security” select “Elastic IPs”.Select to “Allocate New Address”.
If you are unfamiliar with Meteor check out the introduction post in this series or go through the demos available on Meteor’s project website. So… you’ve built a gorgeous Meteor application! You’ve artistically structured a gorgeous codebase that comes together to present a performant, delicious application that your consumers will love. What’s the last piece of the puzzle?
Deployment. Where to deploy… ? Heroku? Running Meteor on a Linux distro The first thing you should know about deploying Meteor is, it’s not the same as running meteor within your app root to develop your application. Installing the tools You need to install the following things to run a Meteor app bundle on a Linux distro: A box running Linux :)MongoDBNodeJSg++ makeA web server (like Apache or Nginx) MongoDB For debian-based Linux systems, you can install MonboDB by running: apt-get install mongodb-server NodeJS g++ make Web server Tools. Deploy and Manage a Meteor Application on Ubuntu with Nginx. Setting up Meteor in a local environment is easy.
It handles many things for us like installing node.js, MongoDB and launching our application on a local port.