install zena
$ sudo gem install zena
$ zena myapp
$ cd myapp
$ rake zena:init RAILS_ENV=production
Here is what the last command does:
- create and migrate the database
- create a first website with hostname “localhost”
- start the application
- open the browser at the newly created site
A “zena” application is just a rails application which includes zena gem and uses zena’s routes.
learn how to add content
You can read the user’s manual to get you started or watch a video.
learn how to change the layout
The layout in zena is defined with zafu templates. Read the zafu tutorials or watch this video.
join the mailing-list
If you have any questions or remarks you can ask them on the mailing-list and we’ll be glad to help.
comments
§2 Initialize: Aso don’t forget to raname database_example.yml and edit it to be able to connect to the database…
Thanks for the comment. I updated the instructions.
After $ zena myapp:
......................................
create log/production.log
create log/development.log
create log/test.log
applying template: /usr/lib/ruby/gems/1.8/gems/zena-0.15.1/lib/zena/deploy/template.rb
The template [/usr/lib/ruby/gems/1.8/gems/zena-0.15.1/lib/zena/deploy/template.rb] could not be loaded. Error: /usr/local/lib/site_ruby/1.8/rubygems.rb:280:in `activate’: can’t activate rails (= 2.3.4, runtime) for [“zena-0.15.1”], already activated rails-2.3.5 for []
I am getting the same error as Ilja :
create log/test.log
applying template: /Library/Ruby/Gems/1.8/gems/zena-0.15.1/lib/zena/deploy/template.rb
The template [/Library/Ruby/Gems/1.8/gems/zena-0.15.1/lib/zena/deploy/template.rb] could not be loaded. Error: /Library/Ruby/Site/1.8/rubygems.rb:280:in `activate’: can’t activate rails (= 2.3.4, runtime) for [“zena-0.15.1”], already activated rails-2.3.5 for []
Checked and everything is up to date ?
Damn… this is stupid. I fixed the generator and released gem 0.15.2.
Version 0.15.2 is a miny fix release. I cannot release the latest Sphinx support and other enhancements since these have not been thoroughly tested in production.
By the way: I’m sorry it took me some time to notice these problems. The bug tracker: zena.lighthouseapp.com is watched more closely.
Thanks for the feedback.