Getting the dreaded "Stage not set, ..." error, can't get around it.

356 views
Skip to first unread message

Faddah Steve Yuetsu Wolf

unread,
Oct 5, 2016, 2:02:04 AM10/5/16
to Capistrano
Versions:
  • Ruby v2.3.1
  • Capistrano v3.6.1
  • Rake / Rails / etc - Rake v.11.3.0
Platform:
  • Working on Mac OS X 10.12 (Sierra)
  • Deploying to Arch Linux server
Logs:
  • Please past logs (as completely as possible to a 3rd party pasting service such as pastie.org)
Files:

hi all, 

i'm looking for some help. 

i’m trying to deploy to a Wordpress site using Kronda Adair's (of karveldigital.com) very good instruction & video here —   https://karveldigital.com/how-to-deploy-wordpress-with-capistrano/, using the ruby gem Capistrano & wp-cli to deploy a site i have done to the customer’s site.

Kronda’s instruction in the video is really very good, but i think the problem is that when she made the video, it was Capistrano v2.x, and now it is v3.6.1 and a lot has changed with it. With Capistrano v3.6.1 (Rake v11.3.0) while trying to get a simple script to deploy, it keeps giving me the following error, each time: 

"Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined." ... error. and yes, i've all ready gone into the Capfile and at the end put:  Rake::Task[:production].invoke - i still get the same stage setting error.

Any help on how to get this working with wp-cli & Capistrano v3.6.1, please, would be much appreciated.

best,

—  faddah

Lee Hambley

unread,
Oct 5, 2016, 2:06:59 AM10/5/16
to Capistrano

Hi Faddah,

You might be better served by roots.io whixh is an ansible2 based WordPress+wp-cli deployment tool which formerly used Capistrano and sounds a lot like what you're doing.

(Sent from my Nexus 6, please forgive typos!)


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/d1cca3f5-749f-42a2-9a15-97c95be7e595%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Faddah Steve Yuetsu Wolf

unread,
Oct 18, 2016, 4:40:22 AM10/18/16
to Capistrano

hi Lee, 

thank you for the response.

so is Capistrano + wp-cli not being really supported any more as a solution for migrating/transferring WordPress sites & their MySQL database?

i'll look at roots.io, but i'm hoping it's as simple an (alleged) set-up for migrating/transferring as Capistrano + wp-cli was supposed to be. i say "alleged" because of all the issues i've been having in just trying to make this work. and can anyone still please tell me why i am getting this
Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
...error?

best,

—  faddah
Reply all
Reply to author
Forward
0 new messages