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

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.

主站蜘蛛池模板: 自治县| 蒲城县| 康平县| 贵南县| 屏东市| 抚松县| 紫阳县| 丹东市| 蒲江县| 丹江口市| 独山县| 汶上县| 南宁市| 太湖县| 祁连县| 宾川县| 乡城县| 霍邱县| 门头沟区| 兴宁市| 凤山市| 蕲春县| 南投市| 会泽县| 凌海市| 云浮市| 霍城县| 启东市| 达州市| 大安市| 长泰县| 凤山县| 靖边县| 涟水县| 临西县| 奇台县| 崇明县| 睢宁县| 建水县| 安平县| 黄骅市|