Can I run Meteor from two paths? - meteor

How do I clone and run auth branch with my app, installed at [SRH/meteor/myapp], in addition to having master meteor installed in [usr/local/meteor]?
After having cloned the auth branch, when I attempt to add a package to my app (via meteor add accounts-ui), an error states the package is not available. Clearly, it is looking for the package at: [usr/local/meteor], while I am attempting to run meteor from [SRH/meteor].
Is it OK to have meteor installed at two locations? Obviously, I am confused.
More specifically, how do I clone the auth branch directly to [usr/local] location? Note: I am a newbie to git cloning. Took me a long time to find a tip on how to clone a branch, using:
git clone -b auth git://github.com/meteor/meteor.git
Thanks!

You can do one of two things.
Clone the auth branch to a location (as you have described) and then run meteor via
../../path/to/cloned/auth/branch/meteor run
Use meteorite which was basically created to do this for you.

Related

"Meteor create my-app" taking forever installing npm dependencies

I am a newbie in web development. I have installed Meteor on ubuntu. When I try to create an app using something like:
Meteor create my-app
It creates the my-app folder but it never returns out of "Installing npm dependencies". I have been waiting for more than half and hour. I was wondering if this is normal? How long more should I wait for it to end?
I'm working behind a company proxy but I have set the proxy using the following lines (and that allowed me to install Meteor in the first place):
export http_proxy=http://username:password#proxy:port
export https_proxy=http://username:password#proxy:port
I was stuck in a similar situation on Windows.
Cancel the job using ctrl+c. Since meteor creates the app directory even before the command is complete, you will have the directory intact, go into the directory and run
meteor npm install
It will install all the dependencies (took 7s for me),
then run meteor to start the server.

How to Disable download missing package each time in meteor?

I tried to create meteor web application, but meteor download missing package each time when I change my code, and it was unnecessary.
So, can I config it only runs at the first time?
Thanks!
Could you add the actual message on the package it tries to download? Anyway, there are two potential locations where meteor looks for packages that need to be installed.
This is which each Meteor application and it's using Meteor Atmosphere packages. You can find these at .meteor folder in your project root file called packages path ./meteor/packages
Other potential place is packages.json in project root. It exists if you have used npm install or meteor npm install within the project.
Deleting unnecessary packages from these files should do the trick.

How to run the meteor project which git cloned from the Github in different OS

I've created a meteor project in my Windows system,then it be pushed to my Git repository.
Now I need to git clone to my Mac system and run it, but when I CD into the project folder and use "meteor" order in terminal line, It shows: "you need to creat APP ...", why? what should I do to run the project in my Mac system?
Many thanks~~~
Have you tried following the tutorial?
I think meteor create is what you need.

Install R package from Atlassian Stash

I made an R package which is hosted on my employer's instance of Atlassian Stash. I have been telling other users to clone the repo and then use devtools::install("<path-to-repo>") to install the package.
How can I have users install the package without cloning the repository? Can I do this without hosting the code somewhere more accessible?
Using this solution as a starting point, I discovered that you can use devtools with a Stash ssh url:
devtools::install_git("ssh://git#stash.yourdomain.com:1234/project/repo.git")
That will install from the latest commit on the master branch. You can also install a specific branch:
devtools::install_git("ssh://git#stash.yourdomain.com:1234/project/repo.git", branch="develop")
or tag:
devtools::install_git("ssh://git#stash.yourdomain.com:1234/project/repo.git", branch="v1.0")
(note you don't need the tags/ prefix when using a tag)
This will only work if you have SSH keys for your machine on your Stash account. Using the http clone url will not work, because you can't authenticate properly.

How do you run the meteor tests?

I made some changes to livedata and would like to run the livedata_test. How do you use tinytest to run the livedata_test?
After doing some digging, I've figured out that you may run meteor from the packages directory of your cloned meteor source.
Source: SFJS #23: Functional Programming and Meteor.js (this is actually a fantastic video in general).
Switch to ... /meteor/packages/
Run meteor
Navigate to http://0.0.0.0:3000/ in the browser.
Tests for individual packages may be run by navigating to the specific package directory and following steps 2 and 3 above.
Presto:
Might be worth nothing that you need to make sure you are running the dev "meteor" script from your working git directory. Simply running meteor will default to the system meteor in your path (if you have meteor installed) and will not pick up any changes to the tests / core code that you make.
Run meteor test-packages, then point your browser at http://localhost:3000 .
Run meteor from in the directory of the package you want to test and view results in browser.
Velocity had been selected as the official testing framework for meteor 1.0. The announcement has been made in the last meteor devshop (june 2014).
Packages developed with velocity:
velocity (the test runner)
jasmine-unit (jasmine syntax)
mocha-web-velocity (for testing collections)
velocity-html-reporter (view the tests in the browser)
git clone git://github.com/meteor/meteor.git
cd meteor
./meteor test-packages <package>
Then navigate to http://localhost:3000/.
You have to pass it a driver package. This is how I ran them:
meteor test --driver-package practicalmeteor:mocha
Then check out the app and you should see a UI with the test results.

Resources