Skip to content

Commit

Permalink
Remove application.properties from README and add missing fields to d…
Browse files Browse the repository at this point in the history
…efault file
  • Loading branch information
Tarik Demirović committed Aug 16, 2017
1 parent 82199c0 commit 2385cf1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 33 deletions.
33 changes: 1 addition & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,7 @@ To start the application with the default configuration ([application.properties
java -jar target/owl-VERSION.jar
```

An external configuration can be provided when starting the app to configure the project name, database properties, change the port the app is running on or toggle specific features.

```
# Sets the project name to be visible on frontend
project.name=<your_project_name>
# Comma separated list of suite names that will be shown on dashboard (can be left empty)
suite.statistics=smoke test,regression test
# Feature toogles
# Show git information on dashboard - branch and commit hash of the tested code
project.features.git.info=false
# Github repo link used to generate links to specific commits
git.github.repo=
# Database Properties
spring.datasource.url=jdbc:postgresql://<database_host>:5432/<database_name>
spring.datasource.username=<database_username>
spring.datasource.password=<database_password>
# Logging Properties
logging.level.org.hibernate.SQL=debug
# Set port - 0 means the default port will be used
server.port=0
# Properties for flyway baseline migrations
flyway.url=jdbc:postgresql://<database_host>:5432/<database_name>
flyway.user=<database_username>
flyway.password=<database_password>
```
An external configuration ([application.properties](src/main/resources/application.properties)) can be provided when starting the app to configure the project name, database properties, change the port the app is running on or toggle specific features.

The configuration can be saved to a file and passed when starting the app with:
```
Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project.name=Project Name
server.port=8090

# Comma separated list of testSuite names that will be shown on dashboard
suite.statistics=
suite.statistics=smoke test,regression test

# Feature toggles
# Show git information on dashboard
Expand All @@ -25,3 +25,12 @@ spring.datasource.password=owlpassword

# Logging Properties
logging.level.org.hibernate.SQL=debug


# Set port - 0 means the default port will be used
server.port=0

# Properties for flyway baseline migrations
flyway.url=jdbc:postgresql://localhost:5432/owl-db
flyway.user=owlusername
flyway.password=owlpassword

0 comments on commit 2385cf1

Please sign in to comment.