Ruby-webby: Difference between revisions
From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary |
Redirected page to Ruby Webby |
||
| Line 1: | Line 1: | ||
| ⚫ | |||
__NOTOC__ |
|||
| ⚫ | |||
== Installation == |
|||
# Install `oniguruma` development package<<BR>> |
|||
Debian: ''libonig-dev''<<BR>> |
|||
Fedora: ''oniguruma-devel'' |
|||
# As root run the following command: |
|||
<pre><nowiki> |
|||
gem install webby haml coderay ultraviolet RedCloth rdiscount bones cucumber |
|||
</nowiki></pre> |
|||
The above line will build and install the proper gems in order to setup webby gem. |
|||
== 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 |
|||
# Build and deploy |
|||
<pre><nowiki> |
|||
webby build |
|||
webby deploy:ssh |
|||
</nowiki></pre> |
|||
Note that `ssh` could be replaced by `rsync` |
|||
==== Webby tasks ==== |
|||
Some common tasks on webby are: |
|||
<pre><nowiki> |
|||
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) |
|||
</nowiki></pre> |
|||
Latest revision as of 00:47, 7 June 2015
Redirect to: