# Problems with migrating code from Cap 2.1.0 to 2.2.0

**URL:** <https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173>\
**Category:** Deployment\
**Created:** [March 6, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173 "2008-03-06T17:44:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@lena](https://www.ruby-forum.com/u/lena)\
**Post date:** [March 6, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173/1 "2008-03-06T17:44:47Z")

</div>

I’ve got a plugin in Cruise Controlrb which worked with Cap 2.1.0. The  
plugin  
invokes Cap on a successful build. Now with Cap 2.2.0 I get this error:

/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/configuration/  
loading.rb:184:in `find_file_in_load_path': no such file to load -- config/deplo y (LoadError) from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c onfiguration/loading.rb:172:in `load\_from\_file’  
from  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c  
onfiguration/loading.rb:89:in `load' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c onfiguration/loading.rb:86:in `load’  
from  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c  
onfiguration/loading.rb:86:in `each' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c onfiguration/loading.rb:86:in `load’  
from ./Capfile:2:in `load' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c onfiguration/loading.rb:173:in `load\_from\_file’  
from  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c  
onfiguration/loading.rb:89:in `load' ... 7 levels... from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c li/execute.rb:14:in `execute’  
from  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/bin/cap:4  
from /usr/local/bin/cap:19:in `load’  
from /usr/local/bin/cap:19  
[error]  
Rendering  
projects/index\_jscontrolrb/projects/hbr/build-224.1-success.in9s/deplo  
Completed in 0.01408 (71 reqs/sec) | Rendering: 0.01276 (90%) | 200 OK  
[[http://s](http://s)  
andbox1-atgdev.hbsp.harvard.edu/projects.js]  
exitstatus: 1  
STDERR TAIL START  
Processing ProjectsController#index (for 10.103.124.133 at 2008-03-06  
11:15:08)  
[GET]R TAIL END  
Parameters: {“format”=\>“js”, “action”=\>“index”,  
“controller”=\>“projects”}  
Rendering projects/index\_jstBuildAction:  
Completed in 0.01359 (73 reqs/sec) | Rendering: 0.01255 (92%) | 200 OK  
[[http://s](http://s)  
andbox1-atgdev.hbsp.harvard.edu/projects.js]  
executed command : echo /usr/hbsp/cruisecontrolrb/projects/hbr/work  
roruser$ cap  
deploy \>\>  
/usr/hbsp/cruisecontrolrb/projects/hbr/build-224.1-success.in9s/deplo  
yment.log && cap deploy \>\>  
/usr/hbsp/cruisecontrolrb/projects/hbr/build-224.1-su  
ccess.in9s/deployment.log  
exitstatus: 1  
STDERR TAIL START  
doesn’t exist  
STDERR TAIL END

---

<div class="post-metadata">

**Author:** ![lena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@lena](https://www.ruby-forum.com/u/lena)\
**Post date:** [March 6, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173/2 "2008-03-06T20:48:00Z")

</div>

Lena Gurevich wrote:  
When CruiseConrol.rb invokes  
“cap deploy”  
it does it from:  
/usr/hbsp/cruisecontrolrb/projects/hbr/work  
and not from:  
/usr/hbsp/hbr

This is what solved my problem:  
cd /usr/hbsp/cruisecontrolrb/projects/hbr/work  
capify .
