Skip to content

Commit

Permalink
Made WebSocket server host and port configurable in application.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
skiwi2 committed Aug 23, 2015
1 parent 59c74e3 commit fc742e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@ environments:
testOnReturn: false
jdbcInterceptors: ConnectionState
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED

---
webSocketServer:
host: "localhost"
port: 6644
2 changes: 1 addition & 1 deletion grails-app/conf/spring/resources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import com.skiwi.fragments.server.FragmentsServer

// Place your Spring DSL code here
beans = {
fragmentsServer(FragmentsServer, "localhost", "6644") { }
fragmentsServer(FragmentsServer, '${webSocketServer.host}', '${webSocketServer.port}') { }
}

0 comments on commit fc742e5

Please sign in to comment.