Skip to content

Commit

Permalink
hotfix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Sep 16, 2020
1 parent ef71f76 commit 3bf1b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LiveServer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export serve, servedocs
#

"""Script to insert on a page for live reload, see `client.html`."""
const BROWSER_RELOAD_SCRIPT = read(joinpath(dirname(pathof(LiveServer)), "client.html"), String)
const BROWSER_RELOAD_SCRIPT = read(joinpath(@__DIR__, "client.html"), String)

"""Whether to display messages while serving or not, see [`verbose`](@ref)."""
const VERBOSE = Ref{Bool}(false)
Expand Down
2 changes: 1 addition & 1 deletion test/server.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testset "Server/Paths " begin
# requested path --> a filesystem path
bk = pwd()
cd(dirname(dirname(pathof(LiveServer))))
cd(joinpath(@__DIR__, ".."))
req = "tmp"
@test LS.get_fs_path(req) == ""
req = "/test/dummies/index.html"
Expand Down

2 comments on commit 3bf1b77

@tlienart
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/21491

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.5 -m "<description of version>" 3bf1b77ea237e74276bc0ef7abd8025a91c4730a
git push origin v0.5.5

Please sign in to comment.