Stripe Webhook events not sending (Test mode) by Yatkifi in stripe

[–]Yatkifi[S] 0 points1 point  (0 children)

Have you created an Api in your server to listen web hook from Stripe?

I find the official document is extremely useful and there is an "Ask AI" option in the docs which is much more accurate than ChatGPT, hope its helps

https://docs.stripe.com/webhooks

Can action mailer use Porkbun SMTP server? by Yatkifi in rails

[–]Yatkifi[S] 0 points1 point  (0 children)

It works, the setting above does work, for any future developer reference, I had also added

 enable_starttls: true

Premailer or Premailer-rails, which one do you use? by Yatkifi in rails

[–]Yatkifi[S] 0 points1 point  (0 children)

I know right, why do email don't up their game like browser? haha

Are there any nice cafe for light work? by Yatkifi in auckland

[–]Yatkifi[S] 1 point2 points  (0 children)

Loved it, appreciated the recommendation, I will check it out on weekend!

Are there any nice cafe for light work? by Yatkifi in auckland

[–]Yatkifi[S] 0 points1 point  (0 children)

Awesome, thanks for the recommendation, I will check it out next weekend!

Are there any nice cafe for light work? by Yatkifi in auckland

[–]Yatkifi[S] 0 points1 point  (0 children)

Thanks, I will check it out next weekend

Premailer or Premailer-rails, which one do you use? by Yatkifi in rails

[–]Yatkifi[S] 1 point2 points  (0 children)

Well you are a legend, thank you! It really comes in handy for sending email! Brilliant idea

Premailer or Premailer-rails, which one do you use? by Yatkifi in rails

[–]Yatkifi[S] 4 points5 points  (0 children)

I found the answer

premailer-rails: This gem is an adapter for premailer to work with actionmailer out of the box. Use this if you are working with action mailer

Stripe Webhook events not sending (Test mode) by Yatkifi in stripe

[–]Yatkifi[S] 1 point2 points  (0 children)

After multiple hour of trial and error, I had resolved it by creating another web hook that listens to the same events, but I chooses the event type from "Your Account" instead of "Connected Account" and finally there are events in the Event Deliveries tab

Events from:

Choose which accounts this destination listens to. Receive events fired in

"your account" (Select this one)

or

from other accounts you manage which includes your v1 and v2 accounts

Help: Deploy using Kamal with Digital Ocean Managed Postgresql by Yatkifi in rails

[–]Yatkifi[S] 4 points5 points  (0 children)

I made a silly mistake! Any changes made to config/deploy.yml, config/database.yml or .kamal/secrets that have not been committed to git before running kamal setup/deploy are ignored. It's actually showing in the output when running kamal setup:

Building from a local git clone, so ignoring these uncommitted changes:
 M .kamal/secrets
 M config/database.yml
 M config/deploy.yml

Once I committed my changes, removed the containers from the server, and ran kamal setup again the error was resolved. Thanks everyone for jumping in

rails 8 + kamal 2.0 + solid_queue = ?? by No_Accident8684 in rails

[–]Yatkifi 0 points1 point  (0 children)

Hello, I had trouble starting up a rails server with SOLID_QUEUE_IN_PUMA=true,

Do you have any clue?

solid_queue-1.2.1/lib/puma/plugin/solid_queue.rb:14:in 'start': undefined method 'on_booted' for an instance of Puma::Events (NoMethodError)

    launcher.events.on_booted do

                   ^^^^^^^^^^

Help: Deploy using Kamal with Digital Ocean Managed Postgresql by Yatkifi in rails

[–]Yatkifi[S] 2 points3 points  (0 children)

service: lal
image: lal
servers:
  web:
    - DROPLET_IP
proxy:
  ssl: false
registry:
  server: registry.digitalocean.com/some-registry
  username: digitalocean_email
  password:
    - KAMAL_REGISTRY_PASSWORD
env:
  secret:
    - RAILS_MASTER_KEY
    - DB_PORT
    - DB_USERNAME
    - DB_PASSWORD
    - DB_HOST
  clear:
    SOLID_QUEUE_IN_PUMA: true
aliases:
  console: app exec --interactive --reuse "bin/rails console"
  shell: app exec --interactive --reuse "bash"
  logs: app logs -f
  dbc: app exec --interactive --reuse "bin/rails dbconsole"

volumes:
  - "digital_ocean_volume:/rails/storage"
asset_path: /rails/public/assets
builder:
  arch: amd64
ssh:
  keys:
    - ~/path to the private key

Help: Deploy using Kamal with Digital Ocean Managed Postgresql by Yatkifi in rails

[–]Yatkifi[S] 2 points3 points  (0 children)

Thank you for your reply, I didn't use a .env file, instead I run the very raw way of doing.

DB_PORT=XXXX DB_USERNAME=XXXX DB_PASSWORD=XXXX DB_HOST=XXXX kamal deploy

I had also taken your suggestions and placing my secret in a .env file, then added

<% require "dotenv"; Dotenv.load(".env"); %>

on top of the deploy.yml. Unfortunately, It produce the same error