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

Relative paths don't work for template? #364

Open
YouveGotMeowxy opened this issue Jan 26, 2024 · 3 comments
Open

Relative paths don't work for template? #364

YouveGotMeowxy opened this issue Jan 26, 2024 · 3 comments
Assignees
Labels

Comments

@YouveGotMeowxy
Copy link

Am I makin ya nuts yet, @sebastianfeldmann ? LOL :)

Not super important, but wondering why this happens? If I use the full server path to the template file, PHPBU finds the template file w/out complaint; but if I use the relative path it complains that it can't find it?

However, I use the exact same relative path for the .log file, and BU has no problem finding it. Both the template file and the .log file are in the same folder as the BU script.

I can use the full path to point to the template, but for the sake of less clutter, and readability I like to use relative paths sometimes.

image

@sebastianfeldmann
Copy link
Owner

sebastianfeldmann commented Feb 8, 2024

Normally the path should be relative to the configuration file.

There is currently a bug. For the webhook template it is not working as expected :/

sebastianfeldmann added a commit that referenced this issue Feb 8, 2024
The relative path was used from the actual CWD phpbu was executed in.
That's not how it should work. Relative path should always be considered
relative to the configuration file.

Fixes issue #364
@sebastianfeldmann
Copy link
Owner

Will be fixed in the upcoming version

@YouveGotMeowxy
Copy link
Author

Any luck on this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants