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 missing something?
within release_path + '/foo/bar' do
puts capture(:pwd)--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/b9dfc621-108f-4492-91b5-8202c92e432a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
task :npm_install do on roles(:app) do within release_path + '/vendor/strangelove/cms' do puts capture(:pwd) end end endDEBUG [b97cf958] Running /usr/bin/env if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi as deploy@<ip>DEBUG [b97cf958] Command: if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fiDEBUG [b97cf958] Directory does not exist '/vendor/strangelove/cms'(Backtrace restricted to imported tasks)cap aborted!SSHKit::Runner::ExecuteError: Exception while executing as deploy@<ip>: if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi exit status: 1if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stdout: Nothing writtenif test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stderr: Directory does not exist '/vendor/strangelove/cms'
SSHKit::Command::Failed: if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi exit status: 1if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stdout: Nothing writtenif test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stderr: Directory does not exist '/vendor/strangelove/cms'
Tasks: TOP => odyssey:npm_install(See full trace by running task with --trace)The deploy has failed with an error: Exception while executing as deploy@<ip>: if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi exit status: 1if test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stdout: Nothing writtenif test ! -d /vendor/strangelove/cms; then echo "Directory does not exist '/vendor/strangelove/cms'" 1>&2; false; fi stderr: Directory does not exist '/vendor/strangelove/cms' task :npm_install do on roles(:app) do puts release_path puts release_path + '/vendor/strangelove/cms' within release_path.join('/vendor/strangelove/cms') do puts capture(:pwd) end end end--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/6be7077a-cf19-4d7e-9942-349683236615%40googlegroups.com.