Skip to content

Commit

Permalink
Change default database connection to the hostname used by docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Feb 21, 2016
1 parent 0e732cd commit 4e92b65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Clone the duga repository

Edit `grails-app/conf/duga_example.groovy` to set your settings. Leave the dataSource configuration as-is. Also rename this to `duga.groovy`

Edit `grails-app/conf/application.groovy` and change the `url = 'jdbc:postgresql://localhost:5432/grails'` of the *development* environment
to `url = 'jdbc:postgresql://db:5432/grails'` (Note **localhost** vs. **db**)

Run `./gradlew war`

Create the directory `docker/webapps` and copy `build/libs/*.war` to `docker/webapps/*.war`
Expand Down
2 changes: 1 addition & 1 deletion grails-app/conf/application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ environments {
development {
dataSource {
dbCreate = 'update'
url = 'jdbc:postgresql://localhost:5432/grails'
url = 'jdbc:postgresql://db:5432/grails'
}
}
production {
Expand Down

0 comments on commit 4e92b65

Please sign in to comment.