Meteor-up terminates after running deploy

后端 未结 2 449
野的像风
野的像风 2021-01-27 09:46

I don\'t know why I\'m getting this error. Meteor-up is a brilliant. Whenever I run the deploy command it gets to a time and terminates. Could it be that a timeout has been set

2条回答
  •  佛祖请我去吃肉
    2021-01-27 10:23

    I do not know if it is still relevant, but maybe my answer will help someone else dealing with the same problem.

    The task "Prepare bundle" was introduced in the version 1.3.0 of Meteor Up (see release notes):

    After the bundle is uploaded to each server, a new task is run called "Prepare bundle". It installs the Meteor npm dependencies, rebuilds native modules, and stores the result in a docker image. This has a few benefits:

    • The time in meteor.deployCheckWaitTime no longer needs to include the time to install npm dependencies
    • When installing dependencies fails, it does not continuously restart until meteor.deployCheckWaitTime expires, and running with --verbose shows the full logs from npm install
    • Dependencies are only installed once during each deploy. This means that mup start, mup restart, and mup reconfig are all much faster.

    From the version 1.3.1 this task can be disabled by adding the option app.docker.prepareBundle in mup.js and setting it to false. I dealt with the same error a few weeks ago and with this workaround I was able to deploy my application to DigitalOcean.

提交回复
热议问题