$ npm -v
3.10.3

$节点-v
v4.5.0

我试图从kadirahq / mup设置mup.js,但是之后

cd .deploy

样板设置

我没有任何关于它是否正确设置的状态,只是返回下一行,而不是mupx setup,它沿途确实提供了SUCCESS MUPX安装消息。

任何人都可以提供已经部署到自己的自托管服务器中的mup.js的实际示例(没有数字海洋示例等),因为我已经这样做了。

具有真实mongo_url,mongo_oplog,root_url的有效mup.js,因为我已经尝试过但没有成功。

编辑:

Mac OSX
流星1.4.1.1

添加了mysparkapp / .deploy / mup.js的示例:

module.exports = {
  servers: {
    one: {
      host: 'IP address',
      username: 'root',
      password: 'xxxxxx!'
      //pem: "/Users/seb/.ssh/id_rsa"
      // or leave blank for authenticate from ssh-agent
    }
  },

  meteor: {

    name: 'myappdemo',
    //path: '..',
    path: '/Users/seb/myappdemo/',

    docker: {
    image: 'abernix/meteord:base'
    },

    servers: {
      one: {}
    },
    buildOptions: {
      serverOnly: true
    },
    env: {
      PORT: 63830,
      ROOT_URL: 'http://localhost:63830',
      MONGO_URL: 'mongodb://localhost/meteor'
    },

    //dockerImage: 'kadirahq/meteord'
    dockerImage: 'abernix/meteord:base',
    deployCheckWaitTime: 60
  },

  mongo: {
    oplog: true,
    port: 27017,
    servers: {
      one: {},
    },
  },
};


然后

$ MUP设置

Started TaskList: Setup Docker
[138.68.141.215] - setup docker
[138.68.141.215] - setup docker: SUCCESS

Started TaskList: Setup Meteor
[138.68.141.215] - Setup Environment

Started TaskList: Setup Mongo
[138.68.141.215] - setup environment
[138.68.141.215] - setup environment: SUCCESS
[138.68.141.215] - copying mongodb.conf
[138.68.141.215] - copying mongodb.conf: SUCCESS
[138.68.141.215] - Setup Environment: SUCCESS

Started TaskList: Start Mongo
[138.68.141.215] - start mongo
[138.68.141.215] - start mongo: SUCCESS


$ mup部署

Building App Bundle Locally

Started TaskList: Pushing Meteor
[138.68.141.215] - Pushing Meteor App Bundle to The Server
[138.68.141.215] - Pushing Meteor App Bundle to The Server: SUCCESS
[138.68.141.215] - Pushing the Startup Script
[138.68.141.215] - Pushing the Startup Script: SUCCESS

Started TaskList: Configuring  Meteor Environment Variables
[138.68.141.215] - Sending Environment Variables
[138.68.141.215] - Sending Environment Variables: SUCCESS

Started TaskList: Start Meteor
[138.68.141.215] - Start Meteor
[138.68.141.215] - Start Meteor: SUCCESS
[138.68.141.215] - Verifying Deployment
[138.68.141.215] x Verifying Deployment: FAILED

    -----------------------------------STDERR-----------------------------------
    : "1.2.8"
    }
    npm WARN [email protected] No description
    npm WARN [email protected] No repository field.
    npm WARN [email protected] No license field.
    => Starting meteor app on port:80
    /bundle/bundle/programs/server/node_modules/fibers/future.js:280
                            throw(ex);
                            ^

    Error: Cannot find module 'fbjs/lib/invariant'
        at Function.Module._resolveFilename (module.js:325:15)
        at Function.Module._load (module.js:276:25)
        at Module.require (module.js:353:17)
        at require (internal/module.js:12:17)
        at Object.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/react/lib/PooledClass.js:16:17)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Module.Mp.load (/bundle/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
        at Function.Module._load (module.js:300:12)

    => Redeploying previous version of the app

    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=50'

    -----------


然后

$ npm安装不变警告-保存

x Verifying Deployment: FAILED

-----------------------------------STDERR---------------------------- -------
erm"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node npm-rebuild.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node npm-rebuild.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node npm-rebuild.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /bundle/bundle/programs/server/npm-debug.log

=> Redeploying previous version of the app

-----------------------------------STDOUT-----------------------------------

To see more logs type 'mup logs --tail=50'

----------------------------------------------------------------------------


但是后来出现错误:找不到模块'fbjs / lib / invariant'再次出现???

解决方案(无论如何对我来说)

$npm install -g bcrypt-nodejs &&
$npm uninstall -g bcrypt

最佳答案

确保使用完整路径访问应用程序位置-/ users //。mup.js不喜欢〜/

否则,请发布您的mup.js的示例,然后我会告诉您您要去哪里了。

08-06 20:49