Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks not available? #51

Open
philsmy opened this issue Jun 14, 2021 · 1 comment
Open

Tasks not available? #51

philsmy opened this issue Jun 14, 2021 · 1 comment

Comments

@philsmy
Copy link

philsmy commented Jun 14, 2021

I must be doing something wrong at the very basic level.

Gem is installed:

% bundle list | grep capis
  * capistrano (3.16.0)
  * capistrano-bundler (2.0.1)
  * capistrano-maintenance (1.2.1)
  * capistrano-passenger (0.2.1)
  * capistrano-rails (1.6.1)
  * capistrano-rbenv (2.2.0)

But I get:

% bundle exec cap staging maintenance:disable
(Backtrace restricted to imported tasks)
cap aborted!
Don't know how to build task 'maintenance:disable' (See the list of available tasks with `cap --tasks`)

(See full trace by running task with --trace)

And this is strange:

% cap production doctor:gems

Gems

    capistrano           3.16.0
    airbrussh            1.4.0
    rake                 13.0.3
    sshkit               1.21.2
    net-ssh              6.1.0
    capistrano-bundler   2.0.1
    capistrano-passenger 0.2.1
    capistrano-rails     1.6.1
    capistrano-rbenv     2.2.0

Am I missing a step somewhere?

@mattbrictson
Copy link
Member

Have you added the gem to your Capfile?

require "capistrano/maintenance"

It should go near the bottom of the Capfile, i.e. here:

https://github.com/capistrano/capistrano/blob/f5a16779a7e6ddf6768ea2c1f39b101ffeba796b/lib/capistrano/templates/Capfile#L36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants