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

Lua at client doesn't find starlight when use friendly_urls #152

Open
spectrenoir06 opened this issue Jul 14, 2017 · 1 comment
Open

Lua at client doesn't find starlight when use friendly_urls #152

spectrenoir06 opened this issue Jul 14, 2017 · 1 comment

Comments

@spectrenoir06
Copy link

(working) http://antoine.doussaud.org/?r=main/test/ ( search starlight in /pub/starlight/starlight.js )
(not working) http://antoine.doussaud.org/main/test/ ( search starlight in /main/test/pub/starlight/starlight.js )

Page content:

<h2>Server:</h2>
<?lua@server
	local str = _VERSION .. ", "
	if type(jit) == 'table' then
		str = str .. jit.version .. "<br>"  --LuaJIT 2.0.2
	else
		str = str .. "no JIT<br>"
	end
	page:print(str)
?>
<h2>Client:</h2>
<div id="app"></div>
<?lua@client
	local str = _VERSION .. ", "
	if type(jit) == 'table' then
		str = str .. jit.version  --LuaJIT 2.0.2
	else
		str = str .. "no JIT"
	end
	local app = window.document:getElementById('app')
	print(str)
	app.textContent = str
?>
@jperon
Copy link
Contributor

jperon commented Oct 26, 2018

This comes from this line in latclient :

vm.js_url = conf.lua_at_client.vm_url or "./pub"

The solution is to add a vm_url in conf.lua :

	lua_at_client = {
		vm = "starlight",
		vm_url = "/pub"
	},

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

2 participants