Difference between revisions of "Ruby-webby"

From Bashlinux
Jump to: navigation, search
Line 2: Line 2:
 
= Installation =
 
= Installation =
 
# Install `oniguruma` development package<<BR>>
 
# Install `oniguruma` development package<<BR>>
Debian: ''libonig-dev''
+
Debian: ''libonig-dev''<<BR>>
 
Fedora: ''oniguruma-devel''
 
Fedora: ''oniguruma-devel''
 
# As root run the following command:
 
# As root run the following command:

Revision as of 08:18, 26 January 2010

Installation

  1. Install `oniguruma` development package<
    >
 Debian: libonig-dev<
> Fedora: oniguruma-devel
  1. As root run the following command:
 gem install webby haml coderay ultraviolet RedCloth rdiscount bones cucumber
 

The above line will build and install the proper gems in order to setup webby gem, the second line will show the available templates

Create a webby blog site

  1. Check the available templates
 webby-gen -t

 Available Templates
   blog, presentation, tumblog, website

 
  1. Create the blog site called myblog
 mkdir -p /var/rails
 cd /var/rails
 webby-gen blog myblog
 
  1. Edit the necessary files on content folder
  2. Edit the Sitefile in order to deploy application to the server location
  3. Deploy changes
 webby deploy:ssh
 
Note that `ssh` could be replaced by `rsync`