【问题标题】:Meteor mup deploy errorMeteor mup 部署错误
【发布时间】:2017-08-05 08:18:46
【问题描述】:

我在使用 mup deploy 命令部署流星应用程序时不断收到此错误。 mup setup 命令工作正常。当 mup deploy 开始时,它会执行许多命令并到达它所说的命令 “缩小应用程序代码”。它在那里停留 5-6 分钟,然后发生此错误。

什么可能导致此错误以及如何解决?

 mup deploy --verbose

Building App Bundle Locally
   Minifying app code
=> Build Error. Check the logs printed above.
Error: build-error
    at ChildProcess.<anonymous> (/usr/lib/node_modules/mup/lib/modules/meteor/build.js:46:16)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

这是我的 mup.js 文件。 其他统计 节点 v7.7.2 npm v4.1.2

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

  meteor: {
    // TODO: change app name and path
    name: 'musissive',
    path: '/var/www/meteor/musissive',

    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://musifyindia.com',
      MONGO_URL: 'mongodb://localhost/meteor',
      PORT: 3003,
    },

    docker: {
      // change to 'kadirahq/meteord' if your app is not using Meteor 1.4
      image: 'abernix/meteord:base',
    },

    // This is the maximum time in seconds it will wait
    // for your app to start
    // Add 30 seconds if the server has 512mb of ram
    // And 30 more if you have binary npm dependencies.
    deployCheckWaitTime: 2400,

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

  mongo: {
    port: 27017,
    version: '3.4.1',
    servers: {
      one: {}
    }
  }
};

【问题讨论】:

  • 请问您要部署什么版本的流星?并且您的 aws 服务器上也安装了 mongodb?

标签: meteor deployment mup


【解决方案1】:

meteor build 中发生的错误与 MUP.js 无关。问题在于服务器上的 RAM 不足。我正在尝试使用免费的 EC2 实例进行构建,其中最大 1 GB 可用。这对于 Meteor Build 来说是不够的。当我升级到 4 GB 实例时,它开始工作得很好。

【讨论】:

  • 1GB RAM 以同样的方式损坏。 2GB 适合我!流星 1.8
猜你喜欢
  • 2015-11-01
  • 2016-11-27
  • 1970-01-01
  • 1970-01-01
  • 2015-02-28
  • 2015-11-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多