| hi, I'm using node.js. I want to use external modules, so I created package.json file as following. {"name":"foobar","version":"1.0.0","dependencies":{"express":"2.4.4"}} then pushed application, # upload /Users/sugyan/dotcloud/foobar ssh://dotcloud@uploader.dotcloud.com:21122/foobar sent 689 bytes received 120 bytes 147.09 bytes/sec
does "npm install foobar" run on "/home/dotcloud" ? I want dotcloud server to install "express" module on /home/dotcloud/node_modules, but "foobar" (my application project) was installed as module package... |
| thanks! http://e231abb3.dotcloud.com/ now works! but.. I created another new nodejs application, and push. It doesn't work. (the URL is http://38004db5.dotcloud.com/ ) ssh logged in and run "tree" command. current 2 directories, 4 files
was target dirctory to deploy changed? |
| yes, express was installed correctory, but as dependency modules of "foobar"(name of project directory).
this is /var/log/supervisor/node-stderr--*.log: node.js:134
"require" failed at "node server.js" process, because express is installed as foobar's dependency(not project dependency). directory trees are: .
this sample project is hosted at http://e231abb3.dotcloud.com/ now. thanks. |
Asked: Aug 12 '11
Seen: 346 times
Last updated: Aug 08 '11
Powered by Askbot version 0.7.23
Copyright DotCloud, 2011. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.