Skip to content

Commit

Permalink
Merge pull request #56 from randombenj/bugfix/config-file
Browse files Browse the repository at this point in the history
Bugfix/config file
  • Loading branch information
randombenj authored Apr 8, 2020
2 parents e587e29 + f1b47bf commit ca3fefc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ When you have multiple versions you may want to tag some version as **latest**:
# tag the version VERSION of project PROJECT as latest
curl -X PUT http://localhost:8000/api/PROJECT/VERSION/tags/latest
```


## Advanced config.json

It is possible to configure some things after the fact.

1. Create a `config.json` file
2. Mount it inside your docker container `--volume /path/to/config.json:/var/www/html/config.json`

Supported config options:

* headerHTML
2 changes: 1 addition & 1 deletion web/src/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
}
},
async created() {
const config = ProjectRepository.getConfig()
const config = await ProjectRepository.getConfig()
if (config.hasOwnProperty('headerHTML')){
this.header = config.headerHTML
}
Expand Down

0 comments on commit ca3fefc

Please sign in to comment.