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

Add generator for sidekiq #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

TheZero0-ctrl
Copy link
Collaborator

No description provided.

if options[:authenticate_routes_with_devise]
readme "README"
else
say "\nWe've added Sidekiq routes. Please protect it as necessary to suit your requirements.",
Copy link
Member

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 ... ... ..."

@coolprobn
Copy link
Member

coolprobn commented May 9, 2024

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"

@TheZero0-ctrl
Copy link
Collaborator Author

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?

@coolprobn
Copy link
Member

@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,
Copy link
Member

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
Copy link
Member

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

@TheZero0-ctrl TheZero0-ctrl force-pushed the generator-for-sidekiq branch 4 times, most recently from cd73ee5 to c9abf62 Compare May 24, 2024 09:59
@TheZero0-ctrl TheZero0-ctrl force-pushed the generator-for-sidekiq branch from c9abf62 to 9f91d3f Compare May 31, 2024 15:32
@coolprobn coolprobn added the PR CREATED PR has been created in main Boring Generators Github label Jun 17, 2024
@TheZero0-ctrl TheZero0-ctrl force-pushed the generator-for-sidekiq branch 2 times, most recently from beaea6b to c5622a5 Compare June 30, 2024 11:47
@TheZero0-ctrl TheZero0-ctrl force-pushed the generator-for-sidekiq branch from c5622a5 to 0a4fe67 Compare August 12, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR CREATED PR has been created in main Boring Generators Github
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants