Skip to content

Conversation

timbrandin
Copy link

In the effort to get this nginx effort merged, I've rebased in the latest changes to master of your repository so that it gets included into the open PR 👍

Though this will need your testing to confirm we're not missing any things you've fixed, especially setting up the SSL correctly which I haven't got the possibility to test at the moment.

So let's get this merged now and make it possible for meteor devs to save some money, I myself have 7 Digital Ocean machines, I'd love to combine them as they all have a very light load.

@aaronthorp
Copy link
Owner

cool, i will check it all in the morning and merge if its all ok.

When i made it, it was always just waiting on Arunoda to merge it, i had just finished implementing the mup start|stop|restart etc and that was merged.

I use it every day for all my projects at the moment (you can do by cloning the repo and doing a npm install in the mean time)

I think it wasn't merged previously as he was working on the MupX stuff.

If he doesn't want to merge it in, I might make a mup2 or something in npm for it that way it can be installed from npm.

@timbrandin
Copy link
Author

Yeah, seems like I got it working over here, though it needs testing for ssl.
Then, we should try to bother @arunoda and his crew to merge it. 👍

To test it, I set it up on a sample Digital Ocean droplet and deploy a sample meteor app, also modifing my /etc/hosts file to point my ROOT_URL to the droplet IP. Worked like a charm!

@arunoda
Copy link

arunoda commented Oct 14, 2015

Hey, this is very interesting stuff and really good stuff going on.
Yeah! We are working on mupx. So, it extremely possible we won't merge this :)
We can have this as mup-cluster or mup-vhosts or xxx.

With mupx, since it's docker based I think it's hard to get this merge technically as well.

@timbrandin
Copy link
Author

Seems like the dockers can be run on some defined port , so I don't see any problems doing routing through nginx to that port which now is served by a docker container instead of the forever+node.

Or am I completely wrong here?

Thx for taking your time on this, because this can save a lot of money for a lot of people!!

@timbrandin
Copy link
Author

I would suggest that it got merged and we (me and @aaronthorp) help out forward-porting this to mupx

@arunoda
Copy link

arunoda commented Oct 14, 2015

Ah nope. If you are going with the docker path, we need to run the nginx also inside docker.
Then, we can't server static content with nginx. Since we are running different processes.

What I mean is we need to re-write nginx stuff for mupx from scratch. Also, nginx reloading needs to be address. Without breaking connections when adding a new app or removing a one.

Also, this leads to what happens if we wanna deploy on multiple servers. (Oh are we building Kubernetes)

If we can figure out what we wanna do(I know you guys know that already), we can work it out for mupx.

@timbrandin
Copy link
Author

I just want multiple apps on a single server, I don't even care about
serving static files through nginx because I've never experienced any
issues with node taking that responsibility, but the issue on loosing
connections on other apps, I wouldn't see as a big issue now that meteor's
clientside is amazing at reconnecting. And for this simple multi setup I
think that solution is a really good one compared to paying tons of money
for multiple droplets or for that case something even more expensive on any
other host.

@timbrandin
Copy link
Author

Why do we need nginx running in a container btw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.