无法使用Mup在Digital Ocean上部署流星1.9

问题描述 投票:0回答:1

我一直试图通过Mup在数字海洋小滴上部署流星1.9应用程序,但是我做不到。如果我使用abernix / meteord:base映像,则在快速安装时会出现问题。如果我将其他映像与其他节点版本一起使用,则会收到bcrypt安装错误。这是我的Mup文件。

module.exports = {
  servers: {
    one: {
      // TODO: set host address, username, and authentication method
      host: "server IP",
      username: "root",

      password: "my password"
      // or neither for authenticate from ssh-agent
    }
  },

  app: {
    // TODO: change app name and path
    name: "appName",
    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: 2010,
      ROOT_URL: "my url",
      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:base",
      prepareBundle: false
    },

    // 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: {}
    }
  }

};

这是错误日志,如果我使用最新的图像abernix / meteord:node-12.14.0-base

[192.241.152.237]> [email protected] postinstall /bundle/bundle/programs/server/npm/node_modules/@babel/runtime-corejs2/node_modules/core-js
[192.241.152.237]> node -e "try{require('./postinstall')}catch(e){}"
[192.241.152.237]
[192.241.152.237]
[192.241.152.237]> [email protected] postinstall /bundle/bundle/programs/server/npm/node_modules/babel-runtime/node_modules/core-js
[192.241.152.237]> node -e "try{require('./postinstall')}catch(e){}"
[192.241.152.237]
[192.241.152.237]
[192.241.152.237]> [email protected] install /bundle/bundle/programs/server/npm/node_modules/bcrypt
[192.241.152.237]> node-pre-gyp install --fallback-to-build
[192.241.152.237]
[192.241.152.237]node-pre-gyp WARN Using request for node-pre-gyp https download
[192.241.152.237][bcrypt] Success: "/bundle/bundle/programs/server/npm/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote
[192.241.152.237]
[192.241.152.237]> [email protected] install /bundle/bundle/programs/server/npm/node_modules/sharp
[192.241.152.237]> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
[192.241.152.237]
[192.241.152.237]ERR! sharp 'darwin-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'.
[192.241.152.237]info sharp Attempting to build from source via node-gyp but this may fail due to the above error
[192.241.152.237]info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
[192.241.152.237]make: Entering directory '/bundle/bundle/programs/server/npm/node_modules/sharp/build'
[192.241.152.237]  TOUCH Release/obj.target/libvips-cpp.stamp
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/common.o
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/metadata.o
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/stats.o
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/operations.o
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/pipeline.o
[192.241.152.237]  CXX(target) Release/obj.target/sharp/src/sharp.o
meteor digital-ocean mup
1个回答
1
投票

自1.9移动到节点12以来,您需要使用abernix/meteord:node-12.14.0-base作为图像

© www.soinside.com 2019 - 2024. All rights reserved.