zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 280 forks source link

Deploy multiple difference servers and db? #935

Open thearabbit opened 6 years ago

thearabbit commented 6 years ago

Mup version (1.4.2):

Mup config

module.exports = {
    servers: {
        one: {
            host: "x.x.x.100",
            username: "root",
            pem: "~/.ssh/id_rsa"
        },
        two: {
            host: "x.x.x.200",
            username: "root",
            pem: "~/.ssh/id_rsa"
        },
    },

    meteor: {
        // TODO: change app name and path
        name: "meteor-pp",
        path: "../meteor-app",
        servers: {
            one: {
                env: {
                    ROOT_URL: "http://x.x.x.100",
                    MONGO_URL: "mongodb://localhost/db-one",
                    PORT: 6060
                }
            },
            two: {
                env: {
                    ROOT_URL: "http://x.x.x.200",
                    MONGO_URL: "mongodb://localhost/db-two",
                    PORT: 7070
                }
            },
        },
        buildOptions: {
            serverOnly: true
        },
        env: {
            // ROOT_URL: "http://x.x.x.x",
            // MONGO_URL: "mongodb://localhost/dbName",
            // PORT: 5050
        },

        docker: {
            image: "abernix/meteord:base"
        },

       deployCheckWaitTime: 120,
       enableUploadProgressBar: true
    },

    mongo: {
        oplog: true,
        port: 27017,
        version: "3.4.1",
        servers: {
            one: {},
            two: {},
        }
    }
};

But don't work

zodern commented 6 years ago

This currently isn't supported. After Meteor Up 1.5, it would be possible to add this.