2017-11-06 19 views
2

이 응용 프로그램은 Meteor-1.2.2입니다. Hope Meteor-up은 호환 가능합니다. Mup - Meteor Up을 사용하여 프로덕션 서버에 배포하려고 시도했지만 계속 실패합니다. 나는 약 3 일 동안이 일을 해왔다. Seup은 성공적으로 통과하지만 컴파일은 컴파일 단계에서 실패합니다. 나는 무엇을해야합니까?Meteor-Up을 사용하여 meteorJS 1.2를 배치하지 못했습니다.

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

    "buildOptions": { 
    // build with the debug mode on 
    // You can deploy in debug mode by passing --debug. 
    // This will leave your source code readable by your favorite in-browser debugger, just like it is in local development mode 
    // :: Think Meteor Toys! 
    "debug": true, 

    // executable used to build the meteor project 
    // you can set a local repo path if needed 
    "executable": "meteor" 
    }, 

    // Install MongoDB in the server, does not destroy local MongoDB on future setup 
    "setupMongo": false, 

    // WARNING: Node.js is required! Only skip if you already have Node.js installed on server. 
    "setupNode": true, 

    // WARNING: If nodeVersion omitted will setup 0.10.33 by default. Do not use v, only version number. 
    "nodeVersion": "0.10.40", 

    // Install PhantomJS in the server 
    "setupPhantom": false, 


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

    servers: { 
     one: {}, 
    }, 

    env: { 
     // TODO: Change to your app's url 
     // If you are using ssl, it needs to start with https:// 
     port: 3300, 
     ROOT_URL: 'https://course.rabboni.com', 
     MONGO_URL: 'mongodb://ken4ward:[email protected]:43085/rabbonidbserver', 
    }, 

    ssl: { // (optional) 
    // // Enables let's encrypt (optional) 
     autogenerate: { 
     email: '[email protected]', 
    //  // comma separated list of domains 
     domains: 'course.rabboni.com,www.course.rabboni.com' 
     } 
    }, 

    docker: { 
     // change to 'kadirahq/meteord' if your app is using Meteor 1.3 or older 
     image: 'kadirahq/meteord:base', 
    }, 

    // Show progress bar while uploading bundle to server 
    // You might need to disable it on CI servers 
    enableUploadProgressBar: true, 
    "deployCheckWaitTime": 600 
    }, 

    mongo: { 
    oplog: true, 
    version: '3.4.1', 
    servers: { 
     one: {} 
    } 
    } 
}; 

C:\Programs\contract\crowducate-platform\.deploy>mup.cmd deploy 

    ┌─────────────────────────────────────┐ 
    │          │ 
    │ update available 1.3.4 => 1.3.5 │ 
    │  To update, run npm i -g mup  │ 
    │          │ 
    └─────────────────────────────────────┘ 

loaded config from C:\Programs\contract\crowducate-platform\.deploy\mup.js 

5 Validation Errors 
    - "buildOptions" is an unknown property 
    - "setupMongo" is an unknown property 
    - "setupNode" is an unknown property 
    - "nodeVersion" is an unknown property 
    - "setupPhantom" is an unknown property 

Read the docs and view example configs at 
    http://meteor-up.com/docs 

Building App Bundle Locally 
Errors prevented bundling: 
While minifying app code: 

C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:196:18: 
Unexpected token: punc (:) 
at new JS_Parse_Error 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:196:18) 
at js_error 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:204:11) 
at croak 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:675:9) 
at token_error 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:683:9) 
at unexpected 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:689:9) 
at semicolon 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:709:43) 
at simple_statement 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:889:73) 
at 
C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:742:47 
at 
C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:722:24 
at block_ 
(C:\Users\ken4ward\AppData\Local\.meteor\packages\standard-minifiers\1.0.2\plugin.minifyStd.os\npm\minifiers\node_modules\uglify-js\lib\parse.js:1002:20) 



=> Build Error. Check the logs printed above. 

C:\Programs\contract\crowducate-platform\.deploy> 

C:\Programs\contract\crowducate-platform\.deploy> 

답변

1

이것은 당신이 오류를 읽고 조언을 따를 필요가 어디에 좋은 예입니다 오류 로그. 예를 들어 : 유효 이들의 하나가이처럼 meteor 블록 내에서 할 필요가 buildOptions입니다

5 Validation Errors 
    - "buildOptions" is an unknown property 
    - "setupMongo" is an unknown property 
    - "setupNode" is an unknown property 
    - "nodeVersion" is an unknown property 
    - "setupPhantom" is an unknown property 

: 당신이 다른 사람을 어디서 얻었

meteor: { 
    buildOptions: { 
    // build with the debug mode on 
    debug: true, 
    // mobile setting for cordova apps 
    mobileSettings: { 
     public: { 
     'meteor-up': 'rocks', 
     } 
    }, 
    // executable used to build the meteor project 
    // you can set a local repo path if needed 
    executable: 'meteor', 
    } 
} 

나도 몰라 에서. 파서는 당신에게 유익하며, 유효하지 않은 옵션을 알려줍니다.

다음은 당신이

이 문서를 읽고 http://meteor-up.com/docs

그래서 내 최고의 조언이 지침을 읽을 수에서 예를 들어 CONFIGS를 보려면 설명서를 참조하는 것이 좋습니다. 명령 중 하나 (편집자가 어떤 것을 말하지 않겠습니까?)는 편집 할 수있는 샘플 파일을 생성합니다. MUP는 지침을 따르는 것이 정말 쉽습니다. 재미있게 보내십시오.

+0

고마워요. @Mikkel, 나는 그날 이른 아침에 해결할 수있었습니다. 새로운 문제는 이제 앱을 시작할 때 실패한다는 것입니다. – kehinde