aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.devcontainer
diff options
context:
space:
mode:
authorAlexandre Alapetite <alexandre@alapetite.fr>2023-09-18 08:41:25 +0200
committerGitHub <noreply@github.com>2023-09-18 08:41:25 +0200
commit2cb4f2e23352f6f3bd85ea790085380984ddb613 (patch)
tree0d9bd6fd23bd13925b0148a042c2165de9e3afba /.devcontainer
parent0beabc333f06c71797a1cbf457455c4ca51efec5 (diff)
downloadfreshrss-2cb4f2e23352f6f3bd85ea790085380984ddb613.tar.gz
freshrss-2cb4f2e23352f6f3bd85ea790085380984ddb613.zip
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.
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/README.md2
-rwxr-xr-x.devcontainer/postCreateCommand.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/.devcontainer/README.md b/.devcontainer/README.md
index 22380bc8a..358976f8a 100644
--- a/.devcontainer/README.md
+++ b/.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.:
diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh
index 930ede974..0fe74051e 100755
--- a/.devcontainer/postCreateCommand.sh
+++ b/.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'