Skip to content

Commit 3422b3e

Browse files
authored
Merge pull request #533 from perftools/config-burn-in
Refactor: Update docker-compose setup not to require clone
2 parents 4c86708 + 31c458f commit 3422b3e

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,16 @@ NOTE: PDO may not support all the features of XHGui, see [#320].
116116

117117
This setup uses [docker-compose] to orchestrate docker containers.
118118

119-
1. Clone or download `xhgui` from GitHub.
119+
1. Copy example [`docker-compose.yml`][docker-compose.yml] from this project
120120

121121
2. Startup the containers: `docker-compose up -d`
122122

123123
3. Open your browser at http://xhgui.127.0.0.1.nip.io:8142 or just http://localhost:8142 or type at terminal `composer open`
124124

125-
4. To customize xhgui, copy `config/config.default.php` to `config/config.php` and edit that file.
126-
127-
5. To customize docker-compose, copy `docker-compose.yml` to `docker-compose.override.yml` and edit that file.
125+
4. To customize xhgui, copy `src/config.default.php` to `config/config.php` and edit that file.
128126

129127
[docker-compose]: https://docs.docker.com/compose/
128+
[docker-compose.yml]: https://github.com/perftools/xhgui/raw/HEAD/docker-compose.yml
130129

131130
# Configuration
132131

config/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!/.gitignore

src/ServiceProvider/ConfigProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function register(Container $app): void
1717
define('XHGUI_ROOT_DIR', $app['app.dir']);
1818
}
1919

20-
Config::load($app['app.config_dir'] . '/config.default.php');
20+
Config::load($app['app.dir'] . '/src/config.default.php');
2121

2222
if (file_exists($app['app.config_dir'] . '/config.php')) {
2323
Config::load($app['app.config_dir'] . '/config.php');
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/**
33
* Default configuration for XHGui.
44
*
5-
* To change these, create a file called `config.php` file in the same directory
6-
* and return an array from there with your overriding settings.
5+
* To change these, create a file called `config/config.php` file
6+
* and return an array from there with your new settings.
77
*/
88

99
return [

0 commit comments

Comments
 (0)