Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 16:24
    zodern milestoned #1075
  • Jan 19 17:39
    jirikrepl commented #1220
  • Jan 19 17:39
    jirikrepl commented #1220
  • Jan 19 17:39
    jirikrepl commented #1220
  • Jan 19 15:35
    jirikrepl commented #1220
  • Jan 15 15:30
    DjoleJ opened #1220
  • Jan 15 00:58
    braxtonj opened #1219
  • Jan 14 19:47
    djbelieny commented #1217
  • Jan 14 19:43
    djbelieny commented #1217
  • Jan 13 17:58
    juliensl opened #1218
  • Jan 10 09:18
    eugle commented #1192
  • Jan 10 09:16
    eugle commented #1192
  • Jan 10 09:15
    eugle commented #1192
  • Jan 08 22:27
    carlos-olivera commented #1195
  • Jan 07 03:35
    zodern commented #1217
  • Jan 07 02:21
    djbelieny opened #1217
  • Jan 07 01:14
    djbelieny commented #1213
  • Jan 07 01:13
    djbelieny closed #1213
  • Jan 06 15:31
    1seck closed #1215
  • Jan 06 08:39
    LordA98 commented #836
Erik Demaine
Thanks @zodern!! My app currently seems to be CPU-limited, and most of that seems to be the Meteor processes, so I'll try 1 host for proxy, 1 host for Mongo (though maybe those two could be merged), and 3+ hosts for Meteor, for starters anyway.
Erik Demaine
Oh, and redis. I guess I'll try putting that on the proxy host...
Zamil Murji
I'm looking to support a static site at the domain (e.g. example.com) on an AWS EC2 instance.
I'd like to run the meteor app at a subdomain for the same domain (e.g. mysubdomain.example.com)
Currently I have the mysubdomain.example.com working and I'd like some help with getting the static site working. Can anybody provide an example mup.js file that does what I'm looking for? Do I need to build a docker image with my static site?
Thanks in advance for everyone's help
Zamil Murji
I should mention I want everything on the same AWS EC2 instance

I had considered building a plugin for static websites, but I've switched to using Netlify or similar services. Would you mind sharing why you want to host your static site on the server instead of using a service? If there is enough interest I might still build the plugin.

These would be the two easiest options:

  1. Use https://www.npmjs.com/package/mup-docker-deploy with a custom dockerfile
  2. Create a simple node server (maybe with express and the static middleware) to serve the static files and deploy with https://www.npmjs.com/package/mup-node
Zamil Murji
I didn't want to have the static website and meteor site on two different servers or services. Trying to keep everything on one EC2 instance. Reading the docs a bit more, can I use env PORT to solve my problem? If I set env PORT for the app to something other than 80 (say 5000 like the example in the doc), would subdomain work to connect to that port automatically? I could then use my current nginx setup for the static website on the server that binds to port 80/443
Zamil Murji
initially when I had the nginx server running on port 80/443, mup was failing as it couldn't bind to that port. will give it a try and post my results.
Erik Demaine
In case anyone would like an example configuration for a multiple-machine deployment, here is one, along with description / recommended configuration.
Laurent Roger
thank you @edemaine, did you also study how to upscale mongo ?
Grzegorz Pociejewski
hi, is here anyone who can help me with SSL setup ?
Im trying to run mup proxy setup but i got

```Started TaskList: Setup proxy
[] - Setup Environment
[] - Setup Environment: SUCCESS
[] - Pushing the Startup Script
[] - Pushing the Startup Script: SUCCESS
[] - Pushing Nginx Config Template
[] - Pushing Nginx Config Template: SUCCESS
[] - Pushing Nginx Config
[] - Pushing Nginx Config: SUCCESS
[] - Cleaning Up SSL Certificates
[] - Cleaning Up SSL Certificates: SUCCESS
[] - Copying SSL Certificate Bundle
[] - Copying SSL Certificate Bundle: SUCCESS
[] - Copying SSL Private Key
[] - Copying SSL Private Key: SUCCESS
[] - Setup SSL Certificates for Domains
[] - Setup SSL Certificates for Domains: SUCCESS
[] - Configure Nginx Upstream
[] - Configure Nginx Upstream: SUCCESS

Started TaskList: Start proxy
[] - Start proxy
[] x Start proxy: FAILED

      Error response from daemon: endpoint mup-nginx-proxy not found
Error response from daemon: network mup-proxy not found
Error: No such container: mup-nginx-proxy-letsencrypt
Error response from daemon: endpoint mup-nginx-proxy-letsencrypt not found
Error response from daemon: network mup-proxy not found
docker: Error response from daemon: driver failed programming external connectivity on endpoint mup-nginx-proxy (057cfe2e00d4b1ee883bd96e44eee00af88d5afc490dfc4b33bb724954e5a323): Bind for failed: port is already allocated.

Removed mup-nginx-proxy
Removed mup-nginx-proxy-letsencrypt
latest: Pulling from jrcs/letsencrypt-nginx-proxy-companion
Digest: sha256:c2eaeb6a04620732d30003fecdf9c3ae81c2b7f838fb8485c6f2c21366bffabd
Status: Image is up to date for jrcs/letsencrypt-nginx-proxy-companion:latest
Using default tag: latest
latest: Pulling from jwilder/nginx-proxy
Digest: sha256:4116f2b6fb9b2a41d94149e8261c81ebbfd96aa84882d87f19c45e00a7c3c221
Status: Image is up to date for jwilder/nginx-proxy:latest
Pulled jwilder/nginx-proxy and jrcs/letsencrypt-nginx-proxy-companion

Laurent Roger
as it said, port is already allocated
do you have another ng’ox or apache2 running on your host or another docker ?
(« another nginx »)
Grzegorz Pociejewski
@lc3t35 thx for reply but there is no ngix at least not one run by me. Here is what is running there :
➜ stage git:(stage) ✗ mup docker ps
[] docker ps
18ca9aafb793 mup-app:latest "/bin/sh -c 'bash $M…" 44 hours ago Up 44 hours>80/tcp app
1561a2cec1a3 mongo:3.4.1 "/entrypoint.sh mong…" 7 weeks ago Up 11 days>27017/tcp mongodb
so indeed there is app running on port 80
but i expected mup to manage things. Should i stop app cntainer then run proxy and redeploy ?
Grzegorz Pociejewski
Ok after i stop the app config proxy and them redeploy it seems to be running ( at least no error )
but still i see invalid cert error while im sure certificate is ok, should i go there and place certificate related files somwhere in container ?
Laurent Roger
what is the error message ?
I released mup-node 0.8 today. This release adds support for production debugging. Run mup node debug, and you can connect your local Node devtools, for example those in Chrome, to your Node app running on the server.
Hi @zodern do you know if there is a way to set an environment variable with multiple args? E.g. for nodejs diagnostics this is required:
NODE_OPTIONS: '--report-uncaught-exception --report-on-fatalerror --report-on-signal --report-signal=SIGUSR2 --report-filename=./meteor-app-diagnostic-report.json --report-directory=/tmp'
If done through mup it fails with Error response from daemon: Dockerfile parse error line 13: ARG requires exactly one argument
or adding them to the node start command
Richard Marks
Hello everyone. I have a bit of an issue. I've been hired to update an app that is pretty active and in production. I'm faced with redeploying updates to the app, it was learned that mup was used to deploy the app, however the original deployment mup.js file is no longer available. I have root ssh access to the production server. Is there any way for me to reverse-engineer/dump the mup.js config details on the production server so that I can recreate the deployment to match the current configuration? Or do I have to start over from scratch? There are multiple apps being run through mup on this server, and downtime needs to be at a minimum.