我使用mup進行部署,一切都很順利,直到我添加了流星包。我可以在本地運行它,但我得到以下錯誤,當我部署:流星mup錯誤fbjs不變
-----------------------------------STDERR-----------------------------------
pproximately three times slower than the native implementation.
In order to use the native implementation instead, run
meteor npm install --save bcrypt
in the root directory of your application.
/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:14: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'
----------------------------------------------------------------------------
預計的bycrypt錯誤,因爲故宮的版本顯然不是我使用abernix/meteord:base
泊塢窗的圖像兼容時,我也得到了類似的問題本地運行良好,部署良好。當我添加react-router-ssr
軟件包時出現錯誤,所以我認爲我得到的fbjs/lib/invariant
錯誤是由於此原因。
我mup.js是:
module.exports = {
servers: {
one: {
host: '54.69.x.x',
username: 'ubuntu',
pem: "/Users/me/.ssh/meteor.pem"
}
},
meteor: {
name: 'App',
path: '/Users/me/development/meteor',
servers: {
one: {}
},
buildOptions: {
serverOnly: true,
debug: true
},
enableUploadProgressBar: true,
env: {
ROOT_URL: 'http://54.69.x.x',
MONGO_URL: 'mongodb://user:[email protected]:39685/production'
},
dockerImage: 'abernix/meteord:base',
deployCheckWaitTime: 60
},
mongo: {
oplog: true,
port: 27017,
servers: {
one: {},
},
},
};
感謝您的幫助,您可以提供。順便說一句,如果有人知道如何強制mup連接到我的mongo-url而不是在本地創建mongo,那麼知道這一點太棒了,因爲setupMongo:false的位置似乎與mup和mupx不同。謝謝!!
編輯:如果我手動添加FBJS到的package.json庫,該錯誤會消失,但我得到一個新問題:
Npm.require (/bundle/bundle/programs/server/boot.js:198:17)
at options.fallback (packages/modules-runtime/modules-runtime.js:21:1)
at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:88:1)
at Module.Mp.import (/bundle/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.imports.ui.components.blogs.blog.js (/bundle/bundle/programs/server/app/app.js:3878:866)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at Module.Mp.import (/bundle/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.imports.ui.layouts.blogs.blogsList.js (imports/ui/layouts/application/app.js:8:8)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)