Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webgrind docker host directory conflicts with project's host directory #186

Open
frob opened this issue Jun 28, 2024 · 0 comments
Open

Webgrind docker host directory conflicts with project's host directory #186

frob opened this issue Jun 28, 2024 · 0 comments

Comments

@frob
Copy link

frob commented Jun 28, 2024

Currently Webgrind uses /var/www/html to host the project in docker. This is fine until someone wants to click this
view source
button. If the dockerfile for webgrind was updated to make webgrind operate in an alternate host directory then I wouldn't have to update anything in my project to view the source.

I suggest /var/www/webgrind as the host directory.

This would require a couple of changes in the dockerfile according to the php docker docs

ENV APACHE_DOCUMENT_ROOT /path/to/new/root

RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant