Rafael Magana
asked this on November 22, 2011 17:28
I'm using node v0.4.11 and vmc 0.3.13, the node application works locally, it has a packages.js where I specify the dependencies (express, redis, connect-redis, etc), I've seen some blogs where people recommend doing: npm bundle, but my current version doesn't have this command, npm install creates the node_modules, but it creates a .bin folder and vmc is throwing this error:
Error: Can't deploy application containing links '["/Users/yada/MyApp/node_modules/.bin/express"]' that reach outside its root '/Users/yada/MyApp/'
Any clue?
Comments
I've found that you can just delete the symlink (you're not going to want the express script installed anyway), and the push will work.
There's a bug in the link-analysis code which I filed on github: https://github.com/cloudfoundry/vmc/issues/36
Thanks for the analysis David. I've filed a bug report and linked this thread as well as your GitHub issue so that Cloud Foundry engineering is aware of the problem.
If you need to fix the issue in vmc and are using Ruby 1.9.2 or greater, you can fix the bug:
@david and @Glenn both workarounds worked like a charm, thanks a lot! I hope the CF engineers fix this asap.