Can I use Velocity with Meteor Up?

折月煮酒 提交于 2019-12-25 00:36:35

问题


I recently started using Velocity with Meteor and really like having the HTML reporter as I go. It would be great if the rest of my team could see the testing status on our dev and testing servers, which are deployed on AWS EC2 via Meteor Up.

Unfortunately, Velocity relies on Meteor running in debug mode (what you get with meteor or meteor run locally), and turns off for production deployments (running the Node app that you get from meteor build). Meteor Up (as well as most PaaS deployment solutions) use meteor build in the deployment pipeline, so Velocity doesn't run when I deploy via mup. I've tried setting environment variables like NODE_ENV="development" and NODE_OPTIONS="--debug" but that doesn't seem to work.

Is there a way to get Meteor Up to deploy my app in debug mode?


回答1:


Arunoda here from Mup

We are working on the next version of Mup and it has a way to enable the debug flag when deploying.

See: https://goo.gl/rJn99A

This version of mup uses Docker and it's much more stable than the current version. (We used it to deploy all our app)




回答2:


this is not currently supported in Velocity. The way you mentioned is the only way with the --debug flag. Perhaps you can create a PR for MUP to allow this option



来源:https://stackoverflow.com/questions/30059008/can-i-use-velocity-with-meteor-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!