流星部署到DigitalOcean

时间:2018-08-18 10:46:53

标签: node.js meteor meteor-up

我正在尝试将流星项目(流星)部署到DigitalOcean

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: '142.93.59.204',
      username: 'root',
      pem: '~/.ssh/id_rsa'
      // password: 'server-password'
      // or neither for authenticate from ssh-agent
    }
  },

  app: {
    // TODO: change app name and path
    name: 'MyAppName',
    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://
      PORT: 8001,
      ROOT_URL: 'http://142.93.59.204',
      MONGO_URL: My Mongo URL,
      MONGO_OPLOG_URL: Mongo oplog url,
      UNIVERSE_I18N_LOCALES: 'all'
    },

    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: '3.4.1',
   // servers: {
    //  one: {}
  //  }
//  },

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

  // proxy: {
  //   domains: '142.93.201.135',
  //   ssl: {
  //     // Enable let's encrypt to create free certificates.
  //     // The email is used by Let's Encrypt to notify you when the
  //     // certificates are close to expiring.
  //     letsEncryptEmail: ''
  //   }
  // }
};

在安装Mup之后,没有出现任何错误,而且在Mup部署成功之后。 但是,当我尝试使用服务器ip 142.93.59.204从浏览器打开我的应用程序时,它什么也没有打开。 ubuntu 16.04上digitalocean上的服务器

0 个答案:

没有答案