You should use `-f` to name the Capfile not the deploy.rb, if you look into the Capfile you'll see a lot of important includes, etc.. A preferable implementation might be to have your hubot change directories before running your script, something like: "( cd capistrano/project && cap deploy production)" (to avoid having to name the file explicitly)
Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 16 November 2015 at 21:01, Charles Mean <charles.m...@gmail.com> wrote: > Versions: > > - ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux] > - Capistrano Version: 3.4.0 (Rake Version: 10.1.0) > - rake, version 10.1.0 > > Platform: > > - Working on Debian GNU/Linux 8 > - Deploying to Debian GNU/Linux 8 > > Logs: > > - http://pastebin.com/2Te0MTEh > > Files: > > - Capfile - I am using the -f flag so as far as I can see, this file > is not read > - deploy.rb - http://pastebin.com/LNiZWvpZ > - Stage files (production.rb, staging.rb) - > http://pastebin.com/j7He7bpD > > Hello Guys, > > I am trying to implemente deploy over Hubot, a nice chat robot to automate > tasks. > The problem is that I'm facing some issues with capistrano configuration. > According to the documentation I can set a -f flag to provide > a rakefile(which as far as I can see don't read the Capfile so I need to > write a pure ruby script). > So, when I run cap -f capistrano/project/config/deploy.rb deploy > production I get the following error: > > The deploy has failed with an error: Don't know how to build task > 'git:check' > > > I have made a Google search but could not find any suitable solution. > Do you guys have any idea of what is happening ? > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/eca66404-b508-4a32-8717-92f5baab250b%40googlegroups.com > <https://groups.google.com/d/msgid/capistrano/eca66404-b508-4a32-8717-92f5baab250b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLXyPAw_kqQnVUiTV5oJHEj7hoGEYFAP%2BJZKKwArtHyMSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.