-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add generator for sidekiq #17
base: main
Are you sure you want to change the base?
Conversation
if options[:authenticate_routes_with_devise] | ||
readme "README" | ||
else | ||
say "\nWe've added Sidekiq routes. Please protect it as necessary to suit your requirements.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update to " ... ... Please protect it with authentication as necessary ... ... ..."
I just remembered, we also need to add the command to run the sidekiq to Procfile.dev (or Procfile in general, research) if it exists so it runs when we do "bin/dev" |
rails auto generate Procfile.dev and it seems Procfile is used mostly for the heroku, should I check for both file? |
@TheZero0-ctrl We should only support Procfile.dev generated by rails in the beginning, user should have capability to skip this configuration as well. |
aliases: "-ar", | ||
default: false, | ||
desc: "Tell us if you want sidekiq routes to only be accessed by authenticated users. Defaults to false." | ||
class_option :skip_adding_sidekiq_to_procfile, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update to skip_procfile_config / _configuration whichever you want.
say "Adding sidekiq worker to Procfile.dev", :green | ||
append_to_file "Procfile.dev", "worker: bundle exec sidekiq" | ||
else | ||
say "Procfile.dev not found. Skipping adding sidekiq worker to Procfile.dev", :yellow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to return early if File is not found, we don't need to show file not found message
cd73ee5
to
c9abf62
Compare
c9abf62
to
9f91d3f
Compare
beaea6b
to
c5622a5
Compare
c5622a5
to
0a4fe67
Compare
No description provided.