The main files are deploy.yml & secrets

In secrets,

KAMAL_REGISTRY_PASSWORD is the personal access token you generate on Docker hub

RAILS_MASTER_KEY, you find this in config/master.key. it’s a file that is in every rails app.

Screenshot (125).png

# Grab the registry password from ENV
KAMAL_REGISTRY_PASSWORD=xxxxxx

# Improve security by using a password manager. Never check config/master.key into git!
RAILS_MASTER_KEY=xxxxx

In deploy.yml

Set this to the name of your app

service: twitterclone

Set this to the username of your docker hub account and then / the name of your app

image: malachirails/twitterclone

Replace the numbers with the Ipv4 address from your DigitalOcean droplet

servers:
  web:
    - 138.68.190.35