What is Wuby?
Wuby is a Ruby Web Server designed for light-weight Ruby web applications and a framework for storing and accessing data without deploying a database engine. No third-party applications or Gems are required to run Wuby and host a Ruby-based web site.
Remember the days of IIS and ASP code where you could mix HTML and ASP scripts inside of <% %> symbols? Wuby allows you to accomplish the same task but using the Ruby language instead of ASP!
Wuby consists of the following components:
- Lightweight & fast web server
- Supports only GET and POST methods currently
- CGI params and environmental variables
- Optional directory browsing
- Persistent hashed data access layer
- MySQL, SQLite, and Postgres support
The installation is amazingly simple! If you are developing on your local machine simply copy the wuby.rb into your project directory and run "ruby wuby.rb -d -b" in that directory and it will look for your index.rhtml file or allow you to browse the directory om http://localhost:8080.
If you are installing Wuby in a production environment, simply request a mongrel port number from your hosting provider but rather than starting mongrel you start Wuby on the provided port via SSHing into your project directory and typing "ruby wuby.rb -d -p xxxx"". The index.rhtml files and other site pages (include files, images, and stylesheets) simply get uploaded to your project directory and your site is up and running!
View Wuby source code and/or download Wuby blog demo example with Wuby source code. You can also check out more Ruby podcasts and screencasts at Chris Matthieu's Rubyology site.