Don't know how to build task 'git:check'

60 views
Skip to first unread message

Charles Mean

unread,
Nov 16, 2015, 3:43:12 PM11/16/15
to Capistrano
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:
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 ?

Lee Hambley

unread,
Nov 16, 2015, 4:21:46 PM11/16/15
to Capistrano
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)

--
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/eca66404-b508-4a32-8717-92f5baab250b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages