Skip to content

Commit 84555a6

Browse files
authored
Merge pull request #355 from Howriq/issue-349
Issue #349: test readme.md to be updated
2 parents adf4b66 + c97791c commit 84555a6

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ git clone https://github.com/dotkernel/admin.git .
4545
composer install
4646
```
4747

48+
You will be prompted with the below message to choose whether you want to inject ConfigProviders:
49+
50+
```shell
51+
Please select which config file you wish to inject 'Laminas\Validator\ConfigProvider' into:
52+
[0] Do not inject
53+
[1] config/config.php
54+
Make your selection (default is 1):
55+
```
56+
57+
Type `0` to select **[0] Do not inject** and hit `Enter`.
58+
59+
We choose not to inject any ConfigProvider because Dotkernel Admin comes with all the required ConfigProviders already injected in `config/config.php`.
60+
Choosing to inject any extra ConfigProvider would cause having duplicates which are not allowed and would crash the application.
61+
4862
### Development mode
4963
5064
> **Do not enable development mode in production!**
@@ -69,8 +83,6 @@ composer development-status
6983
7084
### Prepare config files
7185
72-
* duplicate `config/autoload/cors.local.php.dist` as `config/autoload/cors.local.php` <- if another application will send requests to this application, make sure configure the `allowed_origins`
73-
* duplicate `config/autoload/local.php.dist` as `config/autoload/local.php`
7486
* **optional**: in order to run/create tests, duplicate `config/autoload/local.test.php.dist` as `config/autoload/local.test.php` <- this creates a new in-memory database that your tests will run on
7587
7688
### Setup database
@@ -185,6 +197,14 @@ npm run prod
185197
186198
### Test the installation
187199
200+
If you are using virtual hosts as described in the [Dotkernel documentation] (https://docs.dotkernel.org/development/) you need you modify the permissions of the `data`, `public/uploads` and `log` folders:
201+
202+
```shell
203+
chmod -R 777 data
204+
chmod -R 777 public/uploads
205+
chmod -R 777 log
206+
```
207+
188208
Run the following command in your project's directory to start PHPs built-in server:
189209
190210
```shell

0 commit comments

Comments
 (0)