Skip to content

Commit 5dd30bb

Browse files
committed
Add clues to how you can use the local kamal network to access a db accessory on the same machine
1 parent fa152fb commit 5dd30bb

File tree

1 file changed

+3
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+3
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/deploy.yml.tt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ env:
5656
# WEB_CONCURRENCY: 2
5757

5858
# Match this to any external database server to configure Active Record correctly
59+
# Use <%= app_name %>-db for a db accessory server on same machine via local kamal docker network.
5960
# DB_HOST: 192.168.0.2
6061

6162
# Log everything from Rails
@@ -105,7 +106,8 @@ builder:
105106
# db:
106107
# image: mysql:8.0
107108
# host: 192.168.0.2
108-
# port: 3306
109+
# # Change to 3306 to expose port to the world instead of just local network.
110+
# port: "127.0.0.1:3306:3306"
109111
# env:
110112
# clear:
111113
# MYSQL_ROOT_HOST: '%'

0 commit comments

Comments
 (0)