2017-07-05 2 views
0

Ich verwende die Meteor-App mit Meteor Up. Die Entwicklung App ist an der Stelle /apps/proto/Meteor/GatewayUI und ich habe die .deploy Ordner, die innerhalb des GatewayUI Ordner ist. On geben Sie den Befehl „MUP bereitstellen“, bekomme ich folgende FehlerMeteor Up-Bereitstellungsfehler

{ 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. 

Mein mup.js wird wie folgt:

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

Antwort

0

Ein paar Dinge für diese nicht 1) geschehen Sicher, dass Meteor installiert ist. In meinem Fall wurde es installiert, der Pfad wurde jedoch nicht festgelegt. Es ist passiert, weil ich vergessen habe, den Pfad dauerhaft 2 hinzuzufügen) Docker, Mongo, Meteor sollte in Kraft installiert werden. 3) Jedes Mal, Mup-Setup muss vorausgehen mup deploy.