0

lately (04/24/2019) I install the MUP on my office ubuntu 16.04 desktop computer and deploy a Meteor App to a cloud server, it works great! love it.

but I have a MacBook at home; now I can only do mup reconfig/mup stop /start on office computer, how can I do it on my Macbook?

Both computers have the app repo (include the .deploy and mup.js..). I tried to search through the MUP documents but no luck. thanks!

added the mup.js

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: '1.1.1.1',
      username: 'ubuntu',
      pem: '/home/rjiao/.ssh/AlltechTC00'
      // password: 'Server_password'
      // or neither for authenticate from ssh-agent
    }
  },

  app: {
    // TODO: change app name and path
    name: 'FAMaster',
    path: '../',

    servers: {
      one: {},
    },

    buildOptions: {
      serverOnly: true,
    },

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: 'http://1.1.1.1',
      MONGO_URL: 'mongodb://mongodb/meteor',
      MONGO_OPLOG_URL: 'mongodb://mongodb/local',
    },

    docker: {
      // change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
      image: 'abernix/meteord:node-8.4.0-base',
    },

    // Show progress bar while uploading bundle to server
    // You might need to disable it on CI servers
    enableUploadProgressBar: true
  },

  mongo: {
    version: '4.0.6',
    servers: {
      one: {}
    }
  },

  // (Optional)
  // Use the proxy to setup ssl or to route requests to the correct
  // app when there are several apps

  // proxy: {
  //   domains: 'mywebsite.com,www.mywebsite.com',

  //   ssl: {
  //     // Enable Let's Encrypt
  //     letsEncryptEmail: 'email@domain.com'
  //   }
  // }
};
Robin Jiao
  • 113
  • 10
  • Please add your MUP config. Are there any errors or any other logging information when using it on your mac? Do you use ssh keys? Are they the same type of ssh key? I for example found, that you [can't use ssh-ed keys](https://stackoverflow.com/questions/54113071/meteor-mup-failed-authentication-using-ssh-ed25519). – Jankapunkt Apr 25 '19 at 08:15
  • BTW Welcome to Stack Overflow – Mikkel Apr 25 '19 at 09:17
  • added the mup.js; yes, use ssh key, plan to use exactly same key – Robin Jiao Apr 26 '19 at 02:56
  • It's clear to me now, mup works only depend on the mup.js and settings.json files, no need anything else. if you have the key and code, you can mup to server from any devices. just make sure your mup.js setting is right - path for key and codes; use github is a good idea, and i use same username in all devices then no need to change anything in the mup.js file, cool – Robin Jiao Aug 27 '19 at 08:18

1 Answers1

0

I do exactly what you want on a regular basis.

I have computers at work and home that have the dev environment set up, and also a deploy folder, with sub-folders for each deployment target, ie staging and production.

So I just cd to the relevant folder, make sure my ssh-agent is loaded, and do a mup deploy

You have to make sure that the environment is up to date locally, ie you have all the npm modules loaded, the latest code from your repo, and it runs your tests ok. Then everything should be sweet.

I also have a CI server that does automatic deployments from develop branch to my staging server, and master to production.

It all works very well.

Mikkel
  • 7,693
  • 3
  • 17
  • 31