resolving a meteor app to a url

September 23, 2015 1.4k views
Node.js Applications MongoDB Deployment Nginx Ubuntu

trying to deploy a meteor app.

Hi,

I have a meteor app that I am trying to get to resolve.

You will see it here

104.236.231.185:3000

The nginx conf file is here

server{
listen 80 defaultserver; # if this is not a default server, remove "defaultserver"
listen [::]:80 default_server ipv6only=on;

this could be your IP address, a subdomain or a full domain

servername 30yearsbold.leith.co.uk;
access
log /var/log/nginx/app.dev.access.log;
error_log /var/log/nginx/app.dev.error.log;

location / {
allow all;

proxypass http://127.0.0.1:3000;
proxy
httpversion 1.1;
proxy
setheader Upgrade $httpupgrade;
proxysetheader Connection 'upgrade';
proxysetheader X-Forwarded-For $remote_addr;
}

}

and the mup settings

{
// Server authentication info
"servers": [
{
"host": "104.236.231.185",
"username": "root",
"password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
// or pem file (ssh based authentication)
//"pem": "~/.ssh/id_rsa"
}
],

// Install MongoDB in the server, does not destroy local MongoDB on future setup
"setupMongo": true,

// WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
"setupNode": true,

// WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
"nodeVersion": "0.10.36",

// Install PhantomJS in the server
"setupPhantom": true,

// Show a progress bar during the upload of the bundle to the server.
// Might cause an error in some rare cases if set to true, for instance in Shippable CI
"enableUploadProgressBar": true,

// Application name (No spaces)
"appName": "roscoe",

// Location of app (local directory)
"app": "/Users/ross/Sites/meteor-30yb",

// Configure environment
"env": {
"ROOTURL": "http://30yearsbold.leith.co.uk",
"PORT": 3000,
"UPSTART
UID" : "meteoruser",
"MAILURL": "smtp://username:password@smtp.sendgrid.net:587",
"METEOR
ENV": "production"
},

// Meteor Up checks if the app comes online just after the deployment
// before mup checks that, it will wait for no. of seconds configured below
"deployCheckWaitTime": 15
}

Why does it not resolve to my url?

1 comment
  • How are you trying to navigate to the URL?

    It is via THAT server, or is it via your PC in a web browser.

    If it is your web browser, you may need to look into getting a DNS service.

Be the first one to answer this question.