regolith 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b9c3d42103600562bbf5ad86588b23c0cf0f4219e31defa04ef21b42bd9b3d5
4
- data.tar.gz: e026f51e4507f8cdbf55bf79ea753c5a2f492cb249c9fe1360dbc3179cbf367f
3
+ metadata.gz: 050f832680d0ff4425e39f2c3446edb3eee7a3b1ff64ed5e1d0126ca6c2dc02c
4
+ data.tar.gz: bfc0fb0f044a41b3ef2a3b122cdf2ff7ca32066a109fef5c8dda8b69897d56f5
5
5
  SHA512:
6
- metadata.gz: ba10b02b1b183c8f0399e72eec0f47b3688acf74004a1826684e597ae823e7e73b5bef9d141f445977bca5658281dc5db4a9d0bcaa22de2b9b33ec334bb85263
7
- data.tar.gz: a18674fbcd2159d2cb6e8bc1c73d5fac155df1e8a995d9b3f6899973c6d3e3cf6a3e693078eaf7d7335c441c29eff818cd90dad46b9067e12428fb259d551829
6
+ metadata.gz: 3f95c074581514b952c6329c11d8eee00160941c09d6f0ddbf2003ff92b3dadede7cb0de2254949d01567f50f8288f27c1985a66ef60ed9f52690676404ecd18
7
+ data.tar.gz: 2674a49555f44e8543ee469682d551faef389efe43dbaba48d248fc04b3df8319202908d4840a5a6c1092d3a7863d225c0edfc76735a2233bc7a082b8bb7e00a
data/lib/regolith/cli.rb CHANGED
@@ -176,6 +176,10 @@ module Regolith
176
176
  end
177
177
  end
178
178
 
179
+ # Fix database configuration BEFORE patching Rails app
180
+ puts "🔧 Updating database configuration for PostgreSQL..."
181
+ patch_database_yml(service_dir, service_name)
182
+
179
183
  patch_rails_app(service_dir, service_name, port)
180
184
 
181
185
  config['services'][service_name] = {
@@ -473,7 +477,11 @@ module Regolith
473
477
  depends_on:
474
478
  - <%= name %>_db
475
479
  environment:
476
- DATABASE_URL: postgresql://postgres:password@<%= name %>_db:5432/<%= name %>_development
480
+ POSTGRES_HOST: <%= name %>_db
481
+ POSTGRES_PORT: 5432
482
+ POSTGRES_DB: <%= name %>_development
483
+ POSTGRES_USER: postgres
484
+ POSTGRES_PASSWORD: password
477
485
  REGOLITH_SERVICE_NAME: <%= name %>
478
486
  REGOLITH_SERVICE_PORT: <%= service['port'] %>
479
487
  volumes:
@@ -1,4 +1,4 @@
1
1
  # lib/regolith/version.rb
2
2
  module Regolith
3
- VERSION = "0.1.31"
3
+ VERSION = "0.1.33"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regolith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Regolith Team