Skip to content

Commit

Permalink
kamal setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ihortok committed Dec 7, 2024
1 parent 3ba1863 commit d5af1dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
!/app/assets/builds/.keep

/coverage

.envrc

/config/credentials/production.key
2 changes: 1 addition & 1 deletion .kamal/secrets
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD

# Improve security by using a password manager. Never check config/master.key into git!
RAILS_MASTER_KEY=$(cat config/master.key)
RAILS_MASTER_KEY=$(cat config/credentials/production.key)
1 change: 1 addition & 0 deletions config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ZrvxBzjfQnyFtVYW7GUIxE7HvXtPp4AOl/i/Vxrek8+nt8X/YYVzOyV1cQQF0IEOkL7qkPgawGb0VmtK2cvxbA2wBWrIP6XjzDPrPHv7ZJtiTgClDPVJAMPUIQ7odN1BXWLtYTTk0ZOyNj0ovGiwNL207NBikByAbbQBJyD+YDNh9XwtfECji4wpxk2d5rLsRLm15ByULUanzVuYJjfxuqeOd8gAdzVlnKrHSt/XM0TiDllYDReAEJwlg7ql5teOy/omn4J9BtrEAqrJQBzcR3ABiamwipE639nG8BxIcezHzUkCjka+NDTdfSSJ8n14njR+q9boKJXEUEb+27kNdxcAlkqHS5+Hv/NAirGcT0zJYP4xJtGKFLsj1NgMs8pkIRKfFJVApedVDYTW9ScheYbDpdHYqwRk92yE8sMHj/4kI9UjcliqB7HvjgO692+t7UJgUJ55EGqlHRJAqnZwZXU8BKa65sweJScWJb0KM0Dh80+gvcn6CWzm--pfAbbBZvGAWHoFI7--JbYAsAMHHTrzi4qJWcPnXA==
12 changes: 6 additions & 6 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
service: books

# Name of the container image.
image: your-user/books
image: ihortok/books

# Deploy to these servers.
servers:
web:
- 192.168.0.1
- 194.99.21.141
# job:
# hosts:
# - 192.168.0.1
Expand All @@ -19,13 +19,13 @@ servers:
# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
proxy:
ssl: true
host: app.example.com
host: books.aronnax.space

# Credentials for your image host.
registry:
# Specify the registry server, if you're not using Docker Hub
# server: registry.digitalocean.com / ghcr.io / ...
username: your-user
username: ihortok

# Always use an access token rather than real password when possible.
password:
Expand Down Expand Up @@ -88,8 +88,8 @@ builder:
# - RAILS_MASTER_KEY

# Use a different ssh user than root
# ssh:
# user: app
ssh:
user: deploy

# Use accessory services (secrets come from .kamal/secrets).
# accessories:
Expand Down

0 comments on commit d5af1dc

Please sign in to comment.