2017-10-16 7 views
0

MUPを使用してMeteorアプリケーションをNGINX搭載のサーバーに構築したいと考えています。半年前、私はそれを作った、とすべてが大丈夫だったが、今私はこのエラーを得た:ここ「処理されていない」エラー「イベント」またはNGINXでmupを使用して流星アプリをデプロイする方法は?

events.js:141 
    throw er; // Unhandled 'error' event 
Error: connect ECONNREFUSED 188.166.60.237:22 
at Object.exports._errnoException (util.js:907:11) 
at exports._exceptionWithHostPort (util.js:930:20) 
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14) 

は私MUP.jsです:

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

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

    servers: { 
     one: {} 
    }, 

    buildOptions: { 
     serverOnly: true, 
    }, 

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

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

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

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

    mongo: { 
    version: '3.2.12', 
    port: 27017, 
    servers: { 
     one: {} 
    } 
    } 
}; 
+1

'ssh -v @'を手動で実行して出力を共有できますか? –

+0

サーバのIPアドレスが変更されていますか? – Mikkel

+0

@DerekBrown here: 'root @ server-main:〜#ssh -v @<188。***。***。237> -bash:予期せぬトークン' newline''の近くに構文エラー@ –

答えて

0

だけで他の人のためにこれを文書化しますこのエラーは、SSHポートがファイアウォールによってブロックされていたために発生しました。デプロイメントホストがSSH経由でアクセス可能であることを確認してください。

これを実行する方法は、システムによって異なります。 Ubuntu(バージョンによって異なる)は、ufwまたはiptablesに、RHELファミリにはfirewallctlまたはiptablesのいずれかが必要です。特定のシステムのファイアウォールのドキュメントを検索するだけです。

関連する問題