There are a few tools that I’m developing and one of them requires you to be able to easily create a webserver instance in any folder and run as any user. Something simple like NodeJS, but works with multiple platforms and has an quick and dirty integration with a server-side language.
PHP requires you to setup PHP + Apache. Rails requires Ruby + Ruby Gems and Rails (this is pretty daunting for someone who doesn’t normally use a command line). NodeJS is simple, but you need to build everything from scratch.
Basically what the end user to be able todo is:
-
download and extract the tool (which has the webserver itself contained within its setup files) and put everything into a directory.
-
run directory/start (this will work as any user).
Any ideas?
The best solution in this case is to use something like
sinatraor a Java-compiled program which spawns a HTTP web server. Everything else either needs to be compiled or installed onto the system and doesn’t support a server-side programming language.