Fedora 18 で Calipso

2013/03/16
いつも使ってるのは drupal なんですが、Calipso を使ってみたくなった。

node.js のインストール


まずは node.js から。
yum でインストール場合
# yum install nodejs npm
# yum install nodejs npm
 
GitHub から落としてきてビルドする場合
# git clone https://github.com/joyent/node.git
# git clone https://github.com/joyent/node.git
# yum install gcc-c++ openssl-devel
# cd node
# ls
AUTHORS      CONTRIBUTING.md  LICENSE   README.md  common.gypi  deps  lib       src   tools
BSDmakefile  ChangeLog        Makefile  benchmark  configure    doc   node.gyp  test  vcbuild.bat
# export PYTHON=/usr/bin/python
# $PYTHON ./configure
# make
# make install
 

MongoDB のインストール


mongoDBのも、yum でさくっと入る。
# yum install mongodb-server
# yum install mongodb-server
 

依存関係で追加されるパッケージは以下
 boost-chrono
 boost-filesystem
 boost-program-options
 boost-system
 boost-thread
 gperftools-libs
 libmongodb
 libunwind
 mongodb
 snappy
 v8

サービスを起動する
# systemctl enable mongod.service
# systemctl enable mongod.service
ln -s '/usr/lib/systemd/system/mongod.service' '/etc/systemd/system/multi-user.target.wants/mongod.service'
# systemctl start mongod.service
# ps -ef | grep mongod
mongodb  14801     1  2 17:09 ?        00:00:02 /usr/bin/mongod --quiet -f /etc/mongodb.conf run
root     14842 14380  0 17:11 pts/2    00:00:00 grep --color=auto mongod
 

動作確認
# mongo
# mongo
MongoDB shell version: 2.2.3
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
        http://docs.mongodb.org/
Questions? Try the support group
        http://groups.google.com/group/mongodb-user
> use test
switched to db test
> db.foo.find()
> db.foo.save({a: 1})
> db.foo.find()
{ "_id" : ObjectId("5144296efe6aab3b2eae5a85"), "a" : 1 }
> db.foo.update( {a: 1}, {a: 5})
> db.foo.find()
{ "_id" : ObjectId("5144296efe6aab3b2eae5a85"), "a" : 5 }
> exit
bye
 

calipso のインストール


npm を使ってダウンロード&インストール
# npm install calipso -g
# npm install calipso -g
 

サイト作成
# mkdir /var/www/html/calipso
# mkdir /var/www/html/calipso
# calipso site /var/www/html/calipso
 

サーバ起動
# cd /var/www/html/calipso
# cd /var/www/html/calipso
# calipso server server.port=3000
Launching calipso from: /var/www/html/calipso
Calipso directory: /usr/local/lib/node_modules/calipso/lib/../
 
            _ _
  ___  __ _| (_)_ __  ___  ___
 / __|/ _` | | | '_ \/ __|/ _ \
| (__| (_| | | | |_) \__ \ (_) |
 \___|\__,_|_|_| .__/|___/\___/
               |_|
 
Calipso version: 0.3.17
Calipso configured for: development environment.
Calipso server listening on port: 3000
16 Mar 19:48:25 - info: Saving configuration ...
16 Mar 19:48:25 - info: Reloading updated configuration ...
16 Mar 19:48:25 - info: Installing module content
16 Mar 19:48:25 - info: Installing module contentTypes
16 Mar 19:48:25 - info: Installing module permissions
16 Mar 19:48:25 - info: Installing module user
16 Mar 19:48:25 - debug: NOTE: bcrypt is not available.
16 Mar 19:48:25 - info: Content module installed ...
16 Mar 19:48:25 - info: Content types module installed ...
16 Mar 19:48:25 - info: User module installed ...
16 Mar 19:48:25 - info: User Roles sub-module installed ...
16 Mar 19:51:00 - info: No Calipso module routes matched the current URL /css/login-icons.css
16 Mar 20:04:53 - info: No Calipso module routes matched the current URL /css/login-icons.css
16 Mar 20:08:11 - debug: ValidationError: Validator "required" failed for path alias
16 Mar 20:11:05 - debug: ValidationError: Validator "required" failed for path alias
 

初期設定




できた!


まだいろいろと不安定っぽい。

0 件のコメント:

コメントを投稿