[Web-SIG] Sarge - a web application hosting tool
alex at grep.ro
Wed Jun 20 22:09:05 CEST 2012
I've been tinkering with a tool for hosting web applications. It aims to make deployment easier by automating configuration on the server: starting up processes, linking them to databases, configuring the front-end web server, etc. Many ideas are borrowed from Ian Bicking's proposal from April 2011.
On the server, Sarge reads a "hosting" configuration file for each "deployment". This describes resources available to the application (e.g. database), along with a domain name, public HTTP port, etc. The "guest" application is deployed with its own configuration file that provides a urlmap, service requirements, entry points. These configuration files are still underspecified; apppkg may be a good model for them.
Processes are started with supervisor, and nginx is assumed as http server. For the application, services (e.g. database access) will be provided via plugins, but the plugin API is not very useful yet.
The code is thoroughly covered in unit tests. There is a small set of integration tests that run against a vagrant virtual machine. Also there is the beginnings of a documentation, including a tutorial that should give you an idea of the deployment workflow.
Feedback is most welcome! I've started work out of personal frustration of having to copy/paste fabric commands between projects, but I'd love for this tool to be widely useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 487 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Web-SIG