title: How to compile Lua scripts into a single executable, while still gaining the fast LuaJIT compiler?
body: <p>How can I compile my <strong><a href="http://lua.org">Lua</a></strong> scripts into a single executable file, while also gaining the super fast performance benefits of <strong><a href="http://luajit.org">LuaJIT</a></strong>?</p>
  
  <p>Background:</p>
  
  <ul>
  <li>My Lua scripts are for a web application I created (e.g. to host <a href="http://example.com">http://example.com</a>)</li>
  <li>My current technology stack is NGINX (web server), Lua/LuaJIT (language to retrieve dynamic content)</li>
  <li>I have around 50+ <code>.lua</code> files that make up my web application (from Models/Views/Controllers)</li>
  <li>FreeBSD 9 operating system</li>
  </ul>
  
  <p>For simplicity sake in deployment, I'd like to compile down all of my .lua scripts that run my web application down to a single executable.</p>
  
  <ol>
  <li><p>Is this possible and how?</p>
  
  <p>It appears that Lua official comes with a library called <a href="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#srlua"><strong>SRLua</strong></a></p></li>
  <li>What are the negatives to compiling down my .lua to a single executable (e.g. would performance be worse, etc)?</li>
  </ol>