官术网_书友最值得收藏!

Meteor's command-line tool

Now that we know already about Meteor's build process and folder structure, we will take a closer look at what we can do with the command-line tool that Meteor provides.

As we saw when using the meteor command, we need to be inside a Meteor project so that all actions will be performed on this project. For example, when we run meteor add xxx, we add a package to the project where we are currently in.

Updating Meteor

If Meteor releases a new version, we can simply update our project by running the following command:

$ meteor update

If we want to go back to a previous version, we can do this by running the following command:

$ meteor update –-release 0.9.1

This would set our project back to release version 0.9.1.

Deploying Meteor

Deploying our Meteor app to a public server is as easy as running the following command:

$ meteor deploy my-app-name

This would ask us to register a Meteor developer account and deploy our app at http://my-app-name.meteor.com.

For a full introduction on how to deploy a Meteor app, refer to Chapter 10, Deploying Our App.

In the Appendix, you can find a full list of Meteor commands and their explanations.

主站蜘蛛池模板: 昭平县| 微山县| 大英县| 定襄县| 河西区| 彩票| 金溪县| 高阳县| 三都| 拉萨市| 江西省| 集贤县| 仪陇县| 章丘市| 景泰县| 石首市| 平罗县| 伊金霍洛旗| 平乡县| 平昌县| 广安市| 临西县| 怀柔区| 长海县| 高平市| 阜宁县| 大庆市| 西宁市| 汉源县| 伊吾县| 明光市| 渑池县| 泸西县| 敦化市| 余干县| 固安县| 咸阳市| 饶平县| 延川县| 峨边| 廉江市|