[capistrano-mailing-list] How to execute `npm install` in a subdirectory?

2015-03-09 Thread Chiel Kunkels
I'm trying to execute npm install in a subdirectory before the release is symlinked, because composer installs a package which requires it. However, when I try within release_path + '/foo/bar' do execute :npm, 'install' It can't install, cause it only sees /foo/bar as the path... am I missi

Re: [capistrano-mailing-list] How to execute `npm install` in a subdirectory?

2015-03-09 Thread Lee Hambley
I'd suggest debugging that this isn't some weird issue with NPM by doing the following: within release_path + '/foo/bar' do puts capture(:pwd) ​Beyond that beware perhaps that `release_path` isn't safe for use at some points in the release workflow, but I can't tell you off the top of my head e

Re: [capistrano-mailing-list] How to execute `npm install` in a subdirectory?

2015-03-09 Thread Lee Hambley
I forgot to mention that you can find plenty of other similar issues with workarounds on Stackoverflow, although many of the workarounds look valid, most of them have misappropriated the blame to something that doesn't apply here (whitespace in the command, then blocks like `within()` have no effec