Skip to content

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