Meteor Up部署错误

时间:2017-07-05 21:00:09

标签: meteor docker deployment meteor-blaze meteor-up

我正在使用Meteor Up部署meteor app。 开发应用程序位于 / apps / proto / meteor / GatewayUI 位置 我有 .deploy 文件夹,该文件夹位于 GatewayUI 文件夹中。 在给出命令" mup deploy"时,我收到以下错误

{ Error: spawn meteor ENOENT
at exports._errnoException (util.js:1018:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
code: 'ENOENT',
errno: 'ENOENT', 
syscall: 'spawn meteor',  
path: 'meteor',  spawnargs:   
[ 'build',     
'--directory', 
'/tmp/mup-meteor-981e8b09-055e-4ffe-a50a-d73d07c1ac5f', 
'--architecture',      
'os.linux.x86_64', 
'--debug',
'--mobile-settings',
'/apps/proto/meteor/GatewayUI/settings.json' ] }
This error usually happens when meteor is not installed.

我的mup.js如下:

module.exports = {
servers: {
one: {
  // TODO: set host address, username, and authentication method
  host: 'myhost',
  username: 'myusername',
  // pem: './path/to/pem'
  password: 'mypassword'
  // or neither for authenticate from ssh-agent
}
},

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

servers: {
  one: {},
},

buildOptions: {
debug: true,
executable: 'meteor',

},

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

// ssl: { // (optional)
//   // Enables let's encrypt (optional)
//   autogenerate: {
//     email: 'email.address@domain.com',
//     // comma seperated list of domains
//     domains: 'website.com,www.website.com'
//   }
// },

docker: {
  // change to 'kadirahq/meteord' if your app is not using Meteor 1.4
  image: 'abernix/meteord:base',
  // imagePort: 80, // (default: 80, some images EXPOSE different ports)
},

// 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: 60,

// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: true
},
 mongo: {
  port: 27199,
  version: '3.4.1',
  servers: {
    one: {}
  }
 }
};

1 个答案:

答案 0 :(得分:0)

有几件事情没有发生 1)确保安装了Meteor。在我的情况下,它已安装,但路径未设置。它发生了,因为我忘了永久地添加路径 2)Docker,Mongo,Meteor应该安装有效。 3)每次 mup setup 必须先于 mup deploy

相关问题