Quellcode durchsuchen

Fix dev container Apache logs (#5660)

Apache logs were not available from the dev container.
Quick fix while waiting for a better integrated solution (e.g. coming in output window) - contributions welcome.
Alexandre Alapetite vor 2 Jahren
Ursprung
Commit
2cb4f2e233
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 2 0
      .devcontainer/README.md
  2. 1 1
      .devcontainer/postCreateCommand.sh

+ 2 - 0
.devcontainer/README.md

@@ -13,6 +13,8 @@ or as [GitHub Codespaces](https://github.com/features/codespaces) simply in a We
 A test instance of FreshRSS is automatically started as visible from the *Ports* tab: check the *Local Address* column, and click on the *Open in browser* 🌐 icon.
 It runs the FreshRSS code that you are currently editing.
 
+Apache logs can be seen in `/var/log/apache2/access.log` and `/var/log/apache2/error.log`.
+
 ## Software tests
 
 Running the tests can be done directly from the built-in terminal, e.g.:

+ 1 - 1
.devcontainer/postCreateCommand.sh

@@ -9,4 +9,4 @@ cp ./Docker/*.Apache.conf /etc/apache2/conf.d/
 chown -R developer:www-data /home/developer/freshrss-data
 chmod -R g+rwX /home/developer/freshrss-data
 
-httpd
+httpd -c 'ErrorLog "/var/log/apache2/error.log"' -c 'CustomLog "/var/log/apache2/access.log" combined_proxy'