regolith 0.1.18 → 0.1.19

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: 8494378218297f554df53058b3c1704b0bfef62faf6c6c65c783897b73a20964
4
- data.tar.gz: c2b92cf6baa28dac0f57eedd8f9c810685289365cce2860ed9feacb31d7e0c42
3
+ metadata.gz: 9f4a42e2d4a1c0be079dff218128afc9451aeff7dae6c97f1c93ca5a43eb4ee9
4
+ data.tar.gz: 5783be43db0adbe9ac420f14190f4c8959130be1bcf9d94409549fb49bb301bd
5
5
  SHA512:
6
- metadata.gz: 0111fcbebc4f066bca55fd305001eb8ad58c568ec8cc0bda45b2f56ec19d3f9c537b822f83973d7d2c8b15cb408fc331e93cbe7f0da18af5208113b615f5e038
7
- data.tar.gz: 2c5e1bf7c54fa24ae1ab7aa57f60e59fea2c36c47d384484f57f5e428d565dc902b80bbd8e737a6f6bf64c9f58b963b24b4cb8a4be16578eaafe0f6761f8a692
6
+ metadata.gz: 8f82bd5a6ec97d8924eceb852ce49541808dc53483492968e1fbe9885cca0924d9a173f592e391afa95d6755dbe34d1d1eda89268bf9aadfcb5e2980dc2e200c
7
+ data.tar.gz: 462938815ddc6d7fbc4a7ea8c225e578538b90e824e13fc28a7dc4f153ba6e7379d72706b2223bef91782d63fbeea9c432f20b9f3f5eb9736d5828afaeb123b7
data/lib/regolith/cli.rb CHANGED
@@ -803,37 +803,31 @@ module Regolith
803
803
  }
804
804
  }
805
805
 
806
- services.each do |name, service|
807
- compose_services[name] = {
808
- 'build' => {
809
- 'context' => service['root'],
810
- 'args' => {
811
- 'BUILD_ENV' => 'development'
812
- }
813
- },
814
- 'ports' => ["#{service['port']}:3000"],
815
- 'networks' => ['regolith'],
816
- 'depends_on' => {
817
- 'db' => {
818
- 'condition' => 'service_healthy'
819
- }
820
- },
821
- 'environment' => {
822
- 'DATABASE_URL' => "postgres://postgres:password@db:5432/#{app_name}_development",
823
- 'REGOLITH_SERVICE_NAME' => name,
824
- 'REGOLITH_SERVICE_PORT' => service['port']
825
- },
826
- 'volumes' => ["#{service['root']}:/app"],
827
- 'command' => 'bash -c "rm -f tmp/pids/server.pid && bundle install && rails db:prepare && rails server -b 0.0.0.0"',
828
- 'healthcheck' => {
829
- 'test' => ['CMD-SHELL', 'curl -f http://localhost:3000/health || exit 1'],
830
- 'interval' => '30s',
831
- 'timeout' => '10s',
832
- 'retries' => 3,
833
- 'start_period' => '40s'
834
- }
806
+ services.each do |name, service|
807
+ db_name = "#{app_name}_#{name}_development" # ← per-service DB
808
+
809
+ compose_services[name] = {
810
+ 'build' => {
811
+ 'context' => service['root'],
812
+ 'args' => { 'BUILD_ENV' => 'development' }
813
+ },
814
+ 'ports' => ["#{service['port']}:3000"],
815
+ 'networks' => ['regolith'],
816
+ 'depends_on' => { 'db' => { 'condition' => 'service_healthy' } },
817
+ 'environment' => {
818
+ 'DATABASE_URL' => "postgres://postgres:password@db:5432/#{db_name}",
819
+ 'REGOLITH_SERVICE_NAME' => name,
820
+ 'REGOLITH_SERVICE_PORT' => service['port']
821
+ },
822
+ 'volumes' => ["#{service['root']}:/app"],
823
+ 'command' => 'bash -c "rm -f tmp/pids/server.pid && bundle install && rails db:prepare && rails server -b 0.0.0.0"',
824
+ 'healthcheck' => {
825
+ 'test' => ['CMD-SHELL', 'curl -f http://localhost:3000/health || exit 1'],
826
+ 'interval' => '30s', 'timeout' => '10s', 'retries' => 3, 'start_period' => '40s'
835
827
  }
836
- end
828
+ }
829
+ end
830
+
837
831
 
838
832
  {
839
833
  'version' => '3.8',
@@ -1,4 +1,4 @@
1
1
  # lib/regolith/version.rb
2
2
  module Regolith
3
- VERSION = "0.1.18"
3
+ VERSION = "0.1.19"
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Regolith Team