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

v6.0.0.beta.1 breaks Nginx functionality #360

Closed
jesperronn opened this issue Feb 18, 2023 · 5 comments
Closed

v6.0.0.beta.1 breaks Nginx functionality #360

jesperronn opened this issue Feb 18, 2023 · 5 comments

Comments

@jesperronn
Copy link

This example from docs/nginx.md is broken in new v6.0.0.beta.1 release:

# Capfile
install_plugin Capistrano::Puma::Nginx

Now cap -T is broken:

$ cap -T
(Backtrace restricted to imported tasks)
cap aborted!
NameError: uninitialized constant Capistrano::Puma::Nginx

install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
                               ^^^^^^^
~/myproject/Capfile:33:in `<top (required)>'
(See full trace by running task with --trace)

Excerpt of my Capfile:

# for capistrano puma:
require 'capistrano/puma'
install_plugin Capistrano::Puma # Default puma tasks
# install_plugin Capistrano::Puma::Monit  # if you need the monit tasks
install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
install_plugin Capistrano::Puma::Systemd # if you use SystemD

Even though nginx is deprecated, I think that restart of nginx is still a useful functionality also for a v6 going onwards

@github-actions
Copy link

Stale issue message

@dawidof
Copy link

dawidof commented May 17, 2023

Have the same issue

@climatebrad
Copy link

This is an open bug.

@climatebrad
Copy link

The solution to this is to include
require 'capistrano/puma/nginx'

before calling
install_plugin Capistrano::Puma::Nginx

@climatebrad
Copy link

That said, the Nginx functionality has been deprecated.

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

No branches or pull requests

3 participants