leafo / lapis

A web framework for Lua and OpenResty written in MoonScript
http://leafo.net/lapis/
MIT License
3.14k stars 247 forks source link

Launch resty-luajit console with lapis.db #435

Open VoittajaTomi opened 8 years ago

VoittajaTomi commented 8 years ago

I am using Lua and I want to have a development console to my app. I want to be able to run db queries from the console using my lapis.db config.lua. How can I achieve this? Running openrestys' luajit from the app directory does not seem to do the trick. Help!

CriztianiX commented 8 years ago

You dont need nothing. Configure the database in "config.lua", run your script with something like:

lua app.lua