aboutsummaryrefslogtreecommitdiff
path: root/Docker/README.md
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-08-22 20:04:26 +0200
committerGravatar GitHub <noreply@github.com> 2019-08-22 20:04:26 +0200
commit6cedeeeae51f5e5220d7f786fb801951811bb743 (patch)
treee9315d2b0c6df48d2a26d6eeeec49dcf94f6929f /Docker/README.md
parent48dda9a803d4c461b6e8b1d2484aaa803ee25462 (diff)
Minz: New environment variable to control development mode (#2508)
* New environment variable to control development mode Suggestion of new enviromnent variable, as discussed https://github.com/FreshRSS/FreshRSS/pull/2492#issuecomment-523613920 * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Update Docker/README.md Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * Declare ENV in Dockerfile Tested
Diffstat (limited to 'Docker/README.md')
-rw-r--r--Docker/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/Docker/README.md b/Docker/README.md
index 32024c829..9de1d5033 100644
--- a/Docker/README.md
+++ b/Docker/README.md
@@ -238,6 +238,22 @@ docker run -d --restart unless-stopped --log-opt max-size=10m \
crond -f -d 6
```
+## Development mode
+
+To contribute to FreshRSS development, you can use one of the Docker images to run and serve the PHP code,
+while reading the source code from your local (git) directory, like the following example:
+
+```sh
+cd /path-to-local/FreshRSS/
+docker run --rm -p 8080:80 -e TZ=Europe/Paris -e FRESHRSS_ENV=development \
+ -v $(pwd):/var/www/FreshRSS \
+ freshrss/freshrss:dev
+```
+
+This will start a server on port 8080, based on your local PHP code, which will show the logs directly in your terminal.
+Press <kbd>Control</kbd>+<kbd>c</kbd> to exit.
+
+The `FRESHRSS_ENV=development` environment variable increases the level of logging and ensures that errors are displayed.
## More deployment options