Installing Zotonic CMS on Windows seems relatively easy.
Erlang : This is straight forward using the Erlang windows installer available from erlang.org
Postgresql : postgresql has had an excellent windows installer for quite a long time.
Zotonic : The bash scripts that do the installation on Linux need to be translated into windows bat files or WSH scripts.
@echo off
set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
set erlc="C:\Program Files\erl5.7.4\bin\erlc.exe"
set ebin=ebin deps\mochiweb\ebin deps\erlang-oauth\ebin deps\webmachine\ebin
%erl% +P 10000000 -pa %ebin% -boot start_sasl -s zotonic
Update: Choosing to go with MinGW and using bash for windows instead of re-writing the shell scripts used to install Zotonic on windows. Since the MinGW/MSYS is an open source ongoing and updated project it should be part of a windows install until such time as a one-click installer is created. Install MinGW without choosing a compiler. Install MSYS and it will choose a compiler for you.
Run:
cd zotonicCreate a user according to the installation instructions. I recommend just using the PostgresqlAdmin GUI. It easier and you avoid some syntax errors if you are not familiar with Postgresql.
make
Make some changes to the start script path:CREATE USER zotonic WITH PASSWORD 'yourdbpassword';
CREATE DATABASE zotonic WITH OWNER = zotonic ENCODING = 'UTF8';
GRANT ALL ON DATABASE zotonic TO zotonic;
#!c:\MSYS\bin\sh.exeThen use command:
cd `dirname $0`
exec erl +P 10000000 +K true -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s zotonic
c:\zotonic>sh start.sh
Some of the other reasons that I want to do this besides a growing interest in learning the Erlang programming language are:
- Speed, typically 10 times (and much more) faster than PHP content management systems.
- Powerful template language based on Django.
- Flexible data model, define you own data categories and relations.
- Complete separation of model, view and controller.
- Event driven web applications.
- Push content to the browser with the built-in comet support.
- Access control for groups of people working together on the content.
- Modular, easy to extend and change existing functionality.
- Builds on jQuery and the CSS framework Atatonic.
- Programmed in Erlang, data stored in PostgreSQL.
- Made by experienced people with deep understanding of CMS, web- and system design.
- Made to make real life web sites.
- Available under the Apache License 2.
Zotonic is built on an Erlang framework called web machine and the web server framework Mochiweb. While this is nice it would have been even better if it were built from scratch using Yaws and plain Erlang.
No comments:
Post a Comment