从终端运行流星服务器

时间:2016-05-27 09:30:27

标签: meteor

运行流星服务器的默认方式是什么?我用了命令

meteor run

meteor

在我的meteor应用程序文件夹中,我总是得到相同的输出(只要我没有引入任何错误):

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/

还有办法加快速度吗?

截至本文,我正在运行Meteor 1.3.2.4

修改

以下是两个使用两个不同命令的引用

1 个答案:

答案 0 :(得分:1)

meteormeteor run是等效的,是开发过程中通过命令行实用程序运行Meteor服务器的标准方法。

Usage: meteor [--release ] [--help]  [args]
       meteor help 
       meteor [--version] [--arch]

With no arguments, 'meteor' runs the project in the current
directory in local development mode. You can run it from the root
directory of the project or from any subdirectory.

Use 'meteor create ' to create a new Meteor project.
Commands:
   run                [default] Run this project in local development mode.
...
如果在run之后未指定其他命令,则

meteor是默认值。

初始运行可能相当慢,有时需要比获取更改所需的时间更长。

在某些情况下,有一个非官方webpack build package可能会更快,但在使用它之前需要考虑一些事项(我会说它的学习曲线略高于标准构建系统,并且文件结构和功能在vanilla meteor和webpack版本之间略有不同。)

在(不太遥远的)未来,有计划转移到Node.js的LTS版本并将构建工具迁移到npm,因此事情可能会发生变化。