Ruby-webby: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
No edit summary
Manpaz (talk | contribs)
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
= Installation =
= Installation =
# Install `oniguruma` development package
# Install `oniguruma` development package<<BR>>
Debian: ''libonig-dev''
Debian: ''libonig-dev''
Fedora: ''oniguruma-devel''
Fedora: ''oniguruma-devel''
Line 8: Line 8:
<pre><nowiki>
<pre><nowiki>
gem install webby haml coderay ultraviolet RedCloth rdiscount bones cucumber
gem install webby haml coderay ultraviolet RedCloth rdiscount bones cucumber
webby-gen -t
</nowiki></pre>
</nowiki></pre>


The above line will build and install the proper gems in order to setup webby gem, the second line will show the available templates
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 =
# Check the available templates
<pre><nowiki>
webby-gen -t

Available Templates
blog, presentation, tumblog, website

</nowiki></pre>

# Create the blog site called ''myblog''
<pre><nowiki>
mkdir -p /var/rails
cd /var/rails
webby-gen blog myblog
</nowiki></pre>

# Edit the necessary files on ''content'' folder
# Edit the ''Sitefile'' in order to deploy application to the server location
# Deploy changes
<pre><nowiki>
webby deploy:ssh
</nowiki></pre>

Note that `ssh` could be replaced by `rsync`

Revision as of 07:32, 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`