This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 57727780332f69b622fb5476429ffedba8a8044e
tree 01d78be46363e97b72d056967038cd1a828e2269
parent 1570da2cd6bcfee997d09019224a6ce97bd400bb
tree 01d78be46363e97b72d056967038cd1a828e2269
parent 1570da2cd6bcfee997d09019224a6ce97bd400bb
zena /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Oct 11 15:16:56 -0700 2008 | |
| |
CREDITS | Thu Oct 23 04:41:13 -0700 2008 | |
| |
Capfile | Mon Jan 28 07:29:53 -0800 2008 | |
| |
History.txt | Sun Apr 05 14:51:14 -0700 2009 | |
| |
MIT-LICENSE | Mon Apr 30 05:59:04 -0700 2007 | |
| |
README | ||
| |
Rakefile | Sat Jan 17 12:05:42 -0800 2009 | |
| |
app/ | ||
| |
bricks/ | Sat Jan 17 12:05:42 -0800 2009 | |
| |
config/ | ||
| |
db/ | ||
| |
doc/ | Sat Jan 17 12:05:42 -0800 2009 | |
| |
lib/ | ||
| |
locale/ | Fri Sep 26 14:57:55 -0700 2008 | |
| |
po/ | Fri Sep 26 14:57:55 -0700 2008 | |
| |
public/ | Sat Jan 17 12:05:42 -0800 2009 | |
| |
script/ | Sat Jan 17 12:05:42 -0800 2009 | |
| |
test/ | ||
| |
vendor/ |
README
== Zena
CMS based on Ruby on Rails, (c) Gaspard Bucher, teti.ch 2007-2009, licenced under MIT
== Creating the database
You need to set collation and charset to utf8 when creating the database. Example :
# create database zena DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
== Development/testing
1. Create the database using a mysql client
create database zena_dev DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
2. Rename 'config/database_example.yml' to 'config/database.yml' and update it's content
3. Migrate the database and add initialize db (from within zena directory)
rake zena:migrate
4. Create a first site or load fixtures
rake zena:mksite HOST=localhost PASSWORD=secret LANG=en
5. Start server
script/server
6. Connect to site 'http://localhost:3000'
7. Login with 'admin' and 'secret'
== Production
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
4. Create a site
rake zena:mksite HOST=example.com PASSWORD=secret LANG=en RAILS_ENV=production
5. 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







