mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Fix dynamic PHP reloading
We need to disable opcaching as this is the server variant of Ubuntu.
This commit is contained in:
parent
af49464209
commit
a690a85053
2 changed files with 3 additions and 8 deletions
|
@ -11,5 +11,8 @@ RUN openssl req -x509 -nodes -days 99999 -newkey rsa:4096 -subj "/CN=standardebo
|
||||||
|
|
||||||
RUN a2enmod headers expires ssl rewrite proxy proxy_fcgi
|
RUN a2enmod headers expires ssl rewrite proxy proxy_fcgi
|
||||||
|
|
||||||
|
# Disable opcaching for dynamic PHP reloading
|
||||||
|
RUN echo "opcache.enable=0\n" >> /etc/php/7.4/fpm/php.ini
|
||||||
|
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
ENTRYPOINT ["/standardebooks.org/web/scripts/docker/start-server.sh"]
|
ENTRYPOINT ["/standardebooks.org/web/scripts/docker/start-server.sh"]
|
||||||
|
|
|
@ -74,14 +74,6 @@ docker run -dp 443:443 -v "$(pwd):/standardebooks.org/web" standardebooks:latest
|
||||||
|
|
||||||
The site will now be available at `https://localhost/`, although as it’s a self-signed certificate you’ll need to accept whatever browser security warnings come up.
|
The site will now be available at `https://localhost/`, although as it’s a self-signed certificate you’ll need to accept whatever browser security warnings come up.
|
||||||
|
|
||||||
If you make a change to the PHP and want to see that reflected in the site, then you’ll need to restart PHP. Connect to your container and run:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
service php7.4-fpm restart
|
|
||||||
```
|
|
||||||
|
|
||||||
Changes to CSS do not require any service restart.
|
|
||||||
|
|
||||||
# Filesystem layout
|
# Filesystem layout
|
||||||
|
|
||||||
- `/standardebooks.org/ebooks/` contains one directory per SE ebook, arranged in a flat hierarchy. These directories look like the URL-safe identifier for the ebook, end in `.git`, and are bare Git repos; they are the “source of truth” for SE ebooks.
|
- `/standardebooks.org/ebooks/` contains one directory per SE ebook, arranged in a flat hierarchy. These directories look like the URL-safe identifier for the ebook, end in `.git`, and are bare Git repos; they are the “source of truth” for SE ebooks.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue