Skip to content

Automate to set webhook url in example v2 #559

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented May 1, 2025

No description provided.

@Yang-33 Yang-33 changed the title Automate to set webhook url Automate to set webhook url in example v2 May 1, 2025
))

if code == 200
p "✅ LINE Webhook URL set to #{webhook_endpoint}"
Copy link
Contributor Author

@Yang-33 Yang-33 May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inside configure, logger can't be used, so this uses just printing to stdout. Is there any way to use logger?

@Yang-33 Yang-33 force-pushed the example-v2-patch-3 branch from 8a1b31c to 80b0a6f Compare May 1, 2025 09:22
@Yang-33 Yang-33 enabled auto-merge May 1, 2025 14:44
@@ -3,7 +3,7 @@
require 'line-bot-api'

set :environment, :production
set :app_base_url, ENV['APP_BASE_URL']
set :app_base_url, ENV.fetch('APP_BASE_URL', nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Q] Why did you allow nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the time of writing this, I thought there might be cases where the callback URL isn't set during local testing, but on further reflection, there are no such cases. I used ENV.fetch(...) to ensure it errors when nil!

@Yang-33 Yang-33 requested a review from mokuzon May 3, 2025 09:23
@Yang-33 Yang-33 self-assigned this May 3, 2025
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

Successfully merging this pull request may close these issues.

2 participants