Search code examples
gitgithubmeteorbranchmeteorite

How to Create a Meteor App From Branch


I'm using Meteorite and saw the repo readme mention :

mrt create my-app --branch devel

However, I'm getting an error when doing such. Meteor saying that --branch are not a recognize command.

More importantly, how can you create the app using specific branch? Or can I go into smart.lock and put Meteor's git with the branch that I want?

I know that I can use a specific release, but I would love to know how can I use a specific branch instead.


Solution

  • I have changed the meteor entry in my smart.json (not smart.lock) file to read:

    {
      "meteor": {
        "git": "https://github.com/meteor/meteor.git",
        "branch": "shark"
      },
      "packages": {
        ...
       }
    }
    

    Instead of branch field, you can also use tag to point to a particular release.