Skip to content

Commit 78c1197

Browse files
committed
Kamal: Update configs
1 parent 5b3f791 commit 78c1197

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

config/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ test:
1515
production:
1616
primary: &primary_production
1717
<<: *default
18+
host: <%= ENV["DB_HOST"] %>
1819
database: open_lis_production
1920
username: open_lis
2021
password: <%= ENV["POSTGRES_PASSWORD"] %>
21-
host: <%= ENV["DB_HOST"] %>
2222
cache:
2323
<<: *primary_production
2424
database: open_lis_production_cache

config/deploy.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ env:
4848
# WEB_CONCURRENCY: 2
4949

5050
# Match this to any external database server to configure Active Record correctly
51-
# Use rails803-db for a db accessory server on same machine via local kamal docker network.
52-
# DB_HOST: 192.168.0.2
51+
# Use open-lis-db for a db accessory server on same machine via local kamal docker network.
5352
DB_HOST: open-lis-db
54-
POSTGRES_USER: open_lis
5553

5654
# Log everything from Rails
5755
# RAILS_LOG_LEVEL: debug
@@ -68,24 +66,24 @@ aliases:
6866
# Use a persistent storage volume for sqlite database files and local Active Storage files.
6967
# Recommended to change this to a mounted volume path that is backed up off server.
7068
# volumes:
71-
# - "open_lis_storage:/rails/storage"
69+
# - "open-lis_storage:/rails/storage"
7270

7371

7472
# Bridge fingerprinted assets, like JS and CSS, between versions to avoid
7573
# hitting 404 on in-flight requests. Combines all files from new and old
7674
# version inside the asset_path.
77-
# asset_path: /rails/public/assets
75+
asset_path: /rails/public/assets
7876

7977
# Configure the image builder.
8078
builder:
8179
arch: arm64
8280

83-
# # Build image via remote server (useful for faster amd64 builds on arm64 computers)
81+
# Build image via remote server (useful for faster amd64 builds on arm64 computers)
8482
# remote: ssh://docker@docker-builder-server
85-
#
86-
# # Pass arguments and secrets to the Docker build process
83+
84+
# Pass arguments and secrets to the Docker build process
8785
# args:
88-
# RUBY_VERSION: 3.4.3
86+
# RUBY_VERSION: 3.4.4
8987
# secrets:
9088
# - GITHUB_TOKEN
9189
# - RAILS_MASTER_KEY
@@ -97,9 +95,9 @@ builder:
9795
# Use accessory services (secrets come from .kamal/secrets).
9896
accessories:
9997
db:
100-
image: postgres:17.0
101-
host: 192.0.2.2
102-
port: "127.0.0.1:5432:5432"
98+
image: postgres:17
99+
host: 192.0.2.1
100+
port: "127.0.0.1:5432:5432 --publish [::1]:5432:5432"
103101
env:
104102
clear:
105103
POSTGRES_DB: open_lis_production

0 commit comments

Comments
 (0)