Gerhardus,
Open the Capfile and replace things like this:

load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
Dir['capistrano/namespaces/*.rb'].each { |file| load(file) }
load 'capistrano/plan'
load 'capistrano/deploy'

With

load File.join(File.dirname(__FILE__), 'deploy') if respond_to?(:namespace)
# cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
Dir['capistrano/namespaces/*.rb'].each { |file| load(file) }
load File.join(File.dirname(__FILE__), 'capistrano/plan')
load File.join(File.dirname(__FILE__), 'capistrano/deploy')

You won't have a "plan" file, that's where we define our before and Afters.

methods used are
File.join<http://www.ruby-doc.org/core/classes/File.html#M002568>
  and File.dirname <http://www.ruby-doc.org/core/classes/File.html#M002565>.

- Hope this helps.

2009/1/28 Gerhardus Geldenhuis <[email protected]>

>
> Hi
> I have created the following alias for a deployer user:
> alias capg='cap -f /home/deployer/tomcat-deploy/multistage/
> testingmultstage.rb'
>
> however when the user runs capg he/she gets the following error:
> /usr/lib/ruby/gems/1.8/gems/capistrano-2.5.3/lib/capistrano/
> configuration/loading.rb:183:in `find_file_in_load_path': no such file
> to load -- config/deploy/test_hol_esb
> (Loa                               dError)
>
> which is because the config files are not in the current directory. I
> can "fix" this with bash but I was wondering if I can rather fix this
> in capistrano. I was expecting capistrano to look for the config
> directory relevant to where the script is and not the pwd. Is there a
> way to fix this do it differently?
>
> Regards
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to