New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 different instance to the same server #800
Comments
It is possible to do this. Try following the instructions at http://meteor-up.com/docs#reverse-proxy. Also, you can run The |
I am trying to do the same. I did what the documentation recommend about two create two folders with separate configurations files as you can see in the following image. Here the first configuration file
And my second file is almost the same
As you can see I am using the proxy recommendation. My application was running alone, and no problem, after change the config with proxy approach stills works. But when I tried to deploy the second instance, I always got the following error, so the app is never deployed on the server.
A lot of issues mentioned something about memory, but I get on the server and using htop the memory consumption is not the issue. I think there is something in mup app that I am missing out 😃 |
@enzolutions you need to run |
If the docker image names reflected their name in the configuration, there shouldn't be a need to have multiple confugrations... For example, such configuration : {
servers: {
app1: {
host: '10.2.0.21',
username: 'user',
password: 'pass',
},
app2: {
host: '10.2.0.21',
username: 'user',
password: 'pass',
}
},
meteor: {
name: 'demo',
path: '../',
servers: {
app1: {
env: {
PORT: 4001
}
},
app2: {
env: {
PORT: 4002
}
}
},
buildOptions: {
serverOnly: true,
},
env: {
ROOT_URL: 'http://10.2.0.21',
// we use our own MongoDB installation....
MONGO_URL: 'mongodb://user:pass@10.2.0.10:27017/demo'
},
docker: {
image: 'abernix/meteord:node-8.4.0-base',
},
deployCheckWaitTime: 120
},
} Should get this result from Docker (i.e.
Then setup nginx as a load balancer and route to either app on demand. And a single |
@yanickrochon he has prod and staging he wants to deploy |
@yanickrochon I've tried your solution but it didn't work out... I wanted to setup load balancing using nginx, but simply it falls in name conflict with the containter names... it doesn't append the "servers" object key after container name. |
Hi,
I'm trying to deploy 2 instances of meteor to the same server IP, but different name.
That means, I have set my DNS so that the server with IP 1.2.3.4, can be accessed by 2 different names: either test.example.com or dev.example.com.
Now I would like to use mup, to deploy both 'test' and 'dev' to that server. For that I've created 2 mup.js files:
Any of them works by itself, but when I try to run both, the second one fails:
Notes:
Reading other posts, I understand it's possible to run multiple instances on the same machine on different ports, however i'm not sure if it's possible to access them on the same port (443) but with different hostname (and let nginx do the right port forwarding based on hostname).
Is that possible? How?
The text was updated successfully, but these errors were encountered: