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

Adding option to select custom log location. #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

digitaldonkey
Copy link

Added Cusom Log Functionality:

virtualhost.sh <name> [<optional path>] [<optional log-path>]

My story was that like to organize my Projects like:

projectname/htdocs
projectname/logs

which wouldn't work before my changes.

@star-szr
Copy link
Contributor

Thanks for the PR! This is supported by the LOG_FOLDER configuration variable.

Add this to your ~/.virtualhost.sh.conf:

LOG_FOLDER="__DOCUMENT_ROOT__/../logs"

Then run:
virtualhost.sh example.dev ~/Sites/example.dev/htdocs

Does that work for your use case? We could probably also support passing it in like this as we do other configuration variables:

LOG_FOLDER="~/Sites/example.dev/logs" virtualhost.sh example.dev ~/Sites/examp
le.dev/htdocs

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

Successfully merging this pull request may close these issues.

2 participants