Skip to content

Commit

Permalink
feat(compose): dasherize app name for docker consistency
Browse files Browse the repository at this point in the history
closes #248
  • Loading branch information
rjherrera committed Feb 3, 2020
1 parent 9ae0ae0 commit 5f1308b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Features:
- Update bundler to 2.0 [#250](https://github.com/platanus/potassium/pull/250)
- Update Rails to 6.0.2 [#251](https://github.com/platanus/potassium/pull/251)
- Improve specs performance [#259](https://github.com/platanus/potassium/pull/259)
- Dasherize app name in docker compose related files [#261](https://github.com/platanus/potassium/pull/261)

Fix:
- Correctly use cache for bundle dependencies in CircleCI build [#244](https://github.com/platanus/potassium/pull/244) and [#258](https://github.com/platanus/potassium/pull/258)
Expand Down
2 changes: 1 addition & 1 deletion lib/potassium/assets/Makefile.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PROJECT ?= <%= get(:underscorized_app_name) %>
PROJECT ?= <%= get(:dasherized_app_name) %>
DOCKER_COMPOSE_FILE ?= docker-compose.yml

DOCKER_COMPOSE_ARGS ?= -p $(PROJECT) -f $(DOCKER_COMPOSE_FILE)
Expand Down
4 changes: 2 additions & 2 deletions lib/potassium/assets/config/database_mysql.yml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development: &default
adapter: mysql2
database: <%= get(:underscorized_app_name) %>_development
database: <%= get(:dasherized_app_name) %>_development
encoding: utf8
host: <%%= ENV["DB_HOST"] || "127.0.0.1" %>
port: <%%= ENV["DB_PORT"] || 3306 %>
Expand All @@ -12,7 +12,7 @@ development: &default

test:
<<: *default
database: <%= get(:underscorized_app_name) %>_test
database: <%= get(:dasherized_app_name) %>_test

production: &deploy
encoding: utf8
Expand Down
4 changes: 2 additions & 2 deletions lib/potassium/assets/config/database_postgresql.yml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development: &default
adapter: postgresql
database: <%= get(:underscorized_app_name) %>_development
database: <%= get(:dasherized_app_name) %>_development
encoding: utf8
host: <%%= ENV["DB_HOST"] || "127.0.0.1" %>
port: <%%= ENV["DB_PORT"] || 5432 %>
Expand All @@ -12,7 +12,7 @@ development: &default

test:
<<: *default
database: <%= get(:underscorized_app_name) %>_test
database: <%= get(:dasherized_app_name) %>_test

production: &deploy
encoding: utf8
Expand Down

0 comments on commit 5f1308b

Please sign in to comment.