Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run a specific release of Meteor?

Tags:

meteor

I've updated to 0.6.0 but would like to run my project in 0.5.8. So when I run:

meteor --release 0.5.8

it returns

0.5.8: unknown release.

What is the correct format for targeting a specific release?

like image 272
user1934853 Avatar asked Apr 07 '13 19:04

user1934853


People also ask

How do you run a meteor project?

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 is the default in case no other command is specified after meteor .

Which command is used to check the version of meteor?

Global tool version of meteor command Find version by: meteor --version # CAUTION this will auto update your meteor release !!!!!


3 Answers

You would need to use a meteorite to use older versions : https://github.com/oortcloud/meteorite. For the moment --release can't target older versions of meteor to 0.6.0.

Install meteorite via

npm install -g meteorite

Then in your project run mrt so that it allows meteorite to localize the project to one version of meteor.

You will notice meteorite has created a smart.json in your project. Edit the smart.json it creates to something like

{
    "meteor": {
    "tag": "v0.5.8"
}

Then just run mrt to get it running meteor version 0.5.8. Only that project would be affected. So your other projects can still run 0.6.0

Of note is meteorite is also very helpful. It allows you to use the packages over at http://atmosphere.meteor.com/ in your project.

Update: To use versions above 0.6.0 on your meteor use --release. e.g

meteor --release 0.6.1
like image 63
Tarang Avatar answered Sep 26 '22 19:09

Tarang


For Meteor releases above 0.6.0, you can add the --release tag to any meteor command:

meteor create test --release 0.6.0

Meteorite can easily pull down earlier releases:

mrt create test --tag v0.5.9

The result is a "smart.json" file that will install the previous Meteor version when you run mrt. You could also manually edit the "smart.json" file:

{
  "meteor": {
    "git": "https://github.com/meteor/meteor.git",
    "tag": "v0.5.9"
  },
  "packages": {}
}
like image 24
user115428 Avatar answered Sep 28 '22 19:09

user115428


Unfortunately, you can't target any release prior to 0.6.0, this feature is only going to help when the next releases of Meteor come out.

like image 1
travellingprog Avatar answered Sep 25 '22 19:09

travellingprog