Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialXavier Finch
480 PointsWhen I run bundle exec cap staging deploy i get "Stage not set, please call something such as `cap production deploy`,
I can not for the life of me successfully troubleshoot this error message. Is there anyone out there that can help? I'm at a complete dead end.
What was ran bundle exec cap <determined stage> deploy
Full error message
"Stage not set, please call something such as cap production deploy
, where production is a stage you have defined."
I've tried running cd .. && cap staging deploy && cd - bundle exec cap <determined stage> deploy -T to see what was attempted
2 Answers
Brandon McClelland
4,645 PointsHave you added all the 'stages' to your project yet, i.e. config/deploy/<determined stage>.rb as suggested here: https://gist.github.com/bruno-/9808201#deploying-the-same-app-to-a-different-environment ?
Xavier Finch
480 Pointsyes. I have. I've tried every single obvious thing that i could find. no dice.
Brandon McClelland
4,645 PointsBrandon McClelland
4,645 PointsAlso, are you sure you are running the command from the project's root directory?