Ruby Webby: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Manpaz (talk | contribs)
Created page with "__NOTOC__ == Installation == * Install <tt>oniguruma</tt> development package : '''Debian:''' <code>apt-get -y install libonig-dev</code> : '''Fedora:''' <code>yum -y install ..."
 
Manpaz (talk | contribs)
No edit summary
 
Line 16: Line 16:
blog, presentation, tumblog, website
blog, presentation, tumblog, website


* Create the blog site called ''myblog''
* Create the blog site called <tt>myblog</tt>
# mkdir -p /var/rails
# mkdir -p /var/rails
# cd /var/rails
# cd /var/rails
# webby-gen blog myblog
# webby-gen blog myblog
* Edit the necessary files on ''content'' folder
* Edit the necessary files on <tt>content</tt> folder
* Edit the ''Sitefile'' in order to deploy application to the server location
* Edit the <tt>Sitefile</tt> in order to deploy application to the server location
* Build and deploy
* Build and deploy
# webby build
# webby build
# webby deploy:ssh
# webby deploy:ssh
: Note that `ssh` could be replaced by `rsync`
: Note that <code>ssh</code> could be replaced by <code>rsync</code>


== Webby tasks ==
== Webby tasks ==

Latest revision as of 00:46, 7 June 2015

Installation

  • Install oniguruma development package
Debian: apt-get -y install libonig-dev
Fedora: yum -y install oniguruma-devel
  • 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.

How to create a webby blog site

  1. Check the available templates
# webby-gen -t

Available Templates
  blog, presentation, tumblog, website
  • Create the blog site called myblog
# mkdir -p /var/rails
# cd /var/rails
# webby-gen blog myblog
  • Edit the necessary files on content folder
  • Edit the Sitefile in order to deploy application to the server location
  • Build and deploy
# webby build
# webby deploy:ssh
Note that ssh could be replaced by rsync

Webby tasks

Some common tasks on webby are:

webby autobuild          # Continuously build the website
webby blog:post          # Create a new blog post
webby build              # Build the website
webby clobber            # Delete the website
webby create:page        # Create a new page
webby create:partial     # Create a new partial
webby create:atom_feed   # Create a new atom_feed
webby deploy             # deploy the site to the webserver
webby deploy:rsync       # Deploy to the server using rsync
webby deploy:ssh         # Deploy to the server using ssh
webby rebuild            # Rebuild the website
webby validate           # Alias to validate:internal 
webby validate:external  # Validate hyperlinks (include external sites)
webby validate:internal  # Validate hyperlinks (exclude external sites)