2017-03-14 2 views
1

mup deploy 명령을 사용하여 meteor app deployment에서이 오류가 계속 발생합니다. mup setup 명령이 정상적으로 작동합니다. mup 배포가 시작되면 많은 명령을 실행하고 '앱 코드 축소'명령에 도달합니다. 거기에 5-6 분 동안 머문 다음이 오류가 발생합니다.Meteor mup deploy 오류

이 오류의 원인과 해결 방법은 무엇입니까?

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

배포하려는 유성 버전은 무엇입니까? 그리고 mongodb도 aws 서버에 설치 했습니까? – collision

답변

0
유성 빌드에서 발생하는 오류가 MUP.js.와는 아무 상관이 없었다

문제는 서버의 RAM이 부족한 경우였습니다. 나는 무료 EC2 인스턴스 whihc와 최대 1GB의 사용 가능한 빌드를 시도했다. 이것은 Meteor Build에는 충분하지 않습니다. 4GB 인스턴스로 업그레이드했을 때 제대로 작동하기 시작했습니다.

관련 문제