public
Description: zena is a state-of-the-art CMS (content managment system) based on Ruby on Rails with a focus on usability, ease of customization and web 2.0 goodness (application like behaviour).
Homepage: http://zenadmin.org
Clone URL: git://github.com/zena/zena.git
zena /
name age message
file .gitignore Wed Nov 04 13:35:06 -0800 2009 Created a brick to enable fulltext search with ... [gaspard]
file CREDITS Thu Jan 22 06:49:41 -0800 2009 Totally broken and messy, just kept in case the... [gaspard]
file Capfile Sat Jan 17 12:05:42 -0800 2009 Started to split every part of zena into it's o... [gaspard]
file DEVELOPERS Mon Sep 14 06:22:40 -0700 2009 Added instructions on whitespace striping befor... [gaspard]
file History.txt Loading commit data...
file MIT-LICENSE Thu Oct 15 15:44:59 -0700 2009 0.15.0 Release: History.txt update and cleanup. [gaspard]
file README.rdoc Thu Oct 15 17:00:47 -0700 2009 Using rdoc markup for Readme file. [gaspard]
file Rakefile Sun Nov 08 06:44:43 -0800 2009 Fixed Rakefile to only include needed files whe... [gaspard]
file TODO Tue Aug 25 08:09:07 -0700 2009 Negative ids need documentation. [gaspard]
file TODO_ZENA_1_0 Thu Oct 15 15:44:59 -0700 2009 0.15.0 Release: History.txt update and cleanup. [gaspard]
directory app/
directory bin/ Sat Oct 17 03:54:10 -0700 2009 Moved all files related to capistrano tasks in ... [gaspard]
directory bricks/ Sun Nov 08 06:44:57 -0800 2009 Added 'adapter' as rule for brick activation, c... [gaspard]
directory config/
directory db/
directory doc/ Thu Nov 05 08:13:28 -0800 2009 Changed syntax for anchors in links. See doc/za... [gaspard]
directory lib/
directory locale/ Mon Nov 02 02:04:43 -0800 2009 Fixed some javascript related bugs when submitt... [gaspard]
directory public/ Mon Nov 02 02:04:43 -0800 2009 Fixed some javascript related bugs when submitt... [gaspard]
directory rails/ Mon Sep 21 01:05:42 -0700 2009 Moved routes into a module. Using an global 'in... [gaspard]
directory script/ Mon Mar 09 02:55:30 -0700 2009 Changed some module/file names so that rails co... [gaspard]
directory spec/ Wed Sep 16 01:31:20 -0700 2009 Trailing spaces cleanup, once and for all. [gaspard]
directory test/
directory vendor/ Tue Nov 10 01:12:18 -0800 2009 Added 'run focused yaml test' to Zena bundle fo... [gaspard]
file zena.gemspec
README.rdoc

DESCRIPTION:

CMS with super natural powers, based on Ruby on Rails

website: zenadmin.org licence: MIT

Getting started

 # sudo gem sources -a http://gems.github.com
 # sudo gem install zena
 # zena myapp

Details

Have a look at the generator used by ‘zena’ command:

github.com/zena/zena/blob/master/config/zena.rb

Production

THE INSTRUCTIONS BELOW NO LONGER APPLY (they need an update since the way to go is to use zena as a gem).

You should use capistrano to ease deployment. See ‘config/delploy.rb’.

Manual deployment is done with the following commands:

  1. Create the database with (using a mysql client) create database zena DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
  2. Create log directory mkdir log
  3. Rename ‘config/database_example.yml’ to ‘config/database.yml’ and update it’s content (change user, password if needed)
  4. Migrate the database rake zena:migrate RAILS_ENV=production
  5. Create a site rake zena:mksite HOST=example.com PASSWORD=secret LANG=en RAILS_ENV=production
  6. Login user is ‘admin’, password is the one set on the line above.

Create a new site

# rake zena:mksite HOST=example.com PASSWORD=secret RAILS_ENV=production

Start

# ruby lib/upload_progress_server.rb start # script/server -S config/mongrel_upload_progress.conf

Stop

# ^C (interrupt) # ruby lib/upload_progress_server.rb stop

Login

You can now login with ‘admin’ and the password you used to make the site.

Dependencies

1. Original in debian etch (might need to replace jpeg by libjpeg62)

  # aptitude install build-essential apache2 mysql-server libmagick9-dev gs-gpl libssl-dev gettext libgettext-ruby libreadline5 libreadline5-dev zlib1g-dev libncurses5 libncurses5-dev unzip liburi-perl libjpeg-dev subversion ssh sudo awstats

If you want to enable LateX (PDF generation) tetex-bin tetex-extra latex-ucs

For math mode (inline formulas), you will need latex dviutils gs-gpl imagemagick # use ‘dvips’ if dviutils is not found. Use ‘tetex’ if ‘latex’ not found.

For xsl-fo pdf generation xsltproc fop # (contrib sources needed on debian for ‘fop’)

             # use 'libxslt' if the package 'xsltproc' does not exist for your platform.

# ocaml-base-nox can be replaced by ‘ocaml’

2. To be installed by hand

ruby1.8.6

    # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
    # tar xzf ruby-1.8.6.tar.gz
    # cd ruby-1.8.6
    # ./configure --with-openssl
    # make && make install

rubygems

    # wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
    # tar xzf rubygems-1.3.1.tgz
    # cd rubygems-1.3.1
    # ruby setup.rb (if ruby is not found, log out and log back in)

ImageMagick (on Linux)

    # wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    # tar xzf ImageMagick.tar.gz
    # cd ImageMagick-*
    # ./configure
    # make && make install

ImageMagick (on mac os X using macports)

    # sudo port install tiff -macosx imagemagick +q8 +gs +wmf

3. install Gems

You can remove "—no-ri —no-rdoc" if you want the documentation

    # gem install querybuilder rake hoe gettext mongrel mongrel_cluster rmagick tzinfo syntax mongrel_upload_progress uuidtools daemons json capistrano yamltest ruby-debug --no-ri --no-rdoc

Versions:

 querybuilder >= 0.5.5
 uuidtools >= 2.x

Advised tools

monit (debian package to monitor your mongrel processes)

Very experimental webDAV

Should not be used for production.

add this to nodes_controller macros:

  act_as_railsdav
  include Zena::WebDav

add this to ‘config/environment.rb’

  require File.join(File.dirname(__FILE__), '../lib/webdav_adapter')

install railsdav

  # script/plugin install http://svn.liverail.net/svn/plugins/railsdav

install dependencies

  # sudo gem install mime-types, unicode