2017-07-05 31 views
0

我正在使用Meteor Up部署Meteor应用程序。 开发的应用程序是在所述位置/应用/原/流星/ GatewayUI 和我有指向.deploy夹这是GatewayUI文件夹内。 在这些命令:“MUP部署”,我得到以下错误Meteor Up部署错误

{ 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 protected]', 
//  // 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: {} 
    } 
} 
}; 

回答

0

对于此两件事情不会发生 1)使确定Meteor已安装。在我的情况下,它被安装,但是,路径没有设置。它发生了,因为我忘记永久添加路径 2)Docker,Mongo,Meteor应该安装成功。 3)每次,mup设置必须先于mup部署