I'm not sure if I understand you right. I added the luvits main wrapper 
with the path bundle:init.lua":

This is my main.lua now:
return require('bundle:init.lua')(function (...)
  local http = require("http")

  local function onRequest(req, res)
    -- do some stuff
  end
  print("Server listening at http://localhost:8080/";)
end, ...)

Running luvi:
$ LUVI_APP="app;luvit" luvi 
[string "bundle:deps/require.lua"]:171: No such module 'bundle:init.lua' in 
'bundle:main.lua'

Still missing something or doing wrong here?

I'm building a root filesystem which will be flash to the embedded device. 
There is no user, just an init script starting the luvit app. That's why no 
lit. Indeed, there would be need for lit on an embedded device if lit can 
cross compile a module. For node, I'm using the npm_config_arch=arm command 
line options for npm on my host machine (x86_64) to cross-compile the node 
modules.

So what I really need is lit being able to cross-compile. This should be 
possible, since luajit can cross-compile for arm and other architectures. 
But for me it's also okay if I can run a luvit app with luvi :-)

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to