You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-23Lines changed: 20 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -259,17 +259,17 @@ mail:
259
259
auth_mode: ~
260
260
```
261
261
262
-
As the project migrates from using Eloquent to Doctrine, you also need to edit the following files to ensure the database
263
-
credentials are correct:
262
+
As the project migrates from using Eloquent to Doctrine you also need to edit the following files to ensure the database
263
+
credentials are correct, creating a version of the modified file in the same location but without the `.dist` suffix.
264
264
265
-
`resources/config/config_testing.yml`
266
-
`resources/config/config_development.yml`
267
-
`resources/config/config_production.yml`
265
+
`resources/config/config_testing.yml.dist`
266
+
`resources/config/config_development.yml.dist`
267
+
`resources/config/config_production.yml.dist`
268
268
269
269
270
270
### [Running behind a trusted proxy](#run-trusted-proxy)
271
271
272
-
If you are running OpenCFP behing a proxy server which adds X-Forwarded-For headers (this could be a cloud based load balancer or a service such as Cloudflare) you will need to set the environment variable TRUST_PROXIES to true this will ensure that OpenCFP trusts the headers set by these proxies for the original IP address and ssl mode. Setting this will trust these headers regardless of where the original request originates, so it's advisable to either lock down your instance so that only the trusted proxy can access it or modify the list of trusted proxies in the index.php file to only include the ip addresses of your proxies.
272
+
If you are running OpenCFP behind a proxy server which adds X-Forwarded-For headers (this could be a cloud based load balancer or a service such as Cloudflare) you will need to set the environment variable TRUST_PROXIES to true this will ensure that OpenCFP trusts the headers set by these proxies for the original IP address and ssl mode. Setting this will trust these headers regardless of where the original request originates, so it's advisable to either lock down your instance so that only the trusted proxy can access it or modify the list of trusted proxies in the index.php file to only include the ip addresses of your proxies.
273
273
274
274
275
275
### [OpenCFP Central](#opencfp-central)
@@ -365,39 +365,36 @@ settings that machine might have that could differ from the machine used for wri
365
365
#### Build & Run the image
366
366
367
367
Please remember to edit the file `config/docker.yml.dist` to match your environment, then you can build your own
368
-
docker image by executing:
368
+
docker image by using a [docker-compose](https://docs.docker.com/compose/install/) command which will build the
369
+
image and run the containers automatically for you:
369
370
370
371
```
371
-
$ ./.docker/build latest
372
+
$ docker-compose -f docker-compose.yml.dist up --build -d
372
373
```
373
374
374
-
And the result will be an image called `opencfp/opencfp:latest`.
375
+
So now if you head over to `http://localhost:8080` you will be greeted with a running version of OpenCFP in
376
+
`development` mode.
375
377
376
-
Or if you like you can run [docker-compose](https://docs.docker.com/compose/install/) command which will build the
377
-
image and run the containers automatically for you:
378
+
After building and running the Docker image you'll need to use the docker-compose[exec](https://docs.docker.com/compose/reference/exec/)
379
+
command to configure things inside the container:
378
380
381
+
```bash
382
+
$ docker-compose -f docker-compose.yml.dist exec app composer run setup-docker
379
383
```
380
-
$ docker-compose -f docker-compose.yml.dist up --build -d
381
-
```
382
-
383
-
So now if you head over to `http://localhost:8080` you will be greeted with a running version of OpenCFP.
384
384
385
-
After building and running the Docker image you'll need to [Run Migrations](#run-migrations) and[Add an Admin User](#user-management) before logging-in.
385
+
and then[Add an Admin User](#user-management) before logging-in.
386
386
387
387
#### Run PHP commands within the Container
388
388
389
389
To run any command in the app container you can use the docker-compose
390
-
[exec](https://docs.docker.com/compose/reference/exec/) command, for example to run the `setup` script you run:
390
+
[exec](https://docs.docker.com/compose/reference/exec/) command, for example to clear the cache for your
391
+
environment:
391
392
392
393
```bash
393
-
$ docker-compose -f docker-compose.yml.dist exec app composer run setup-env
0 commit comments