Hatena::Grouparaistudy

czk-htnの日記

2010-01-18

[][] Ethnaのチュートリアルを試してみる 1 22:50

% export PATH=~/Documents/lib/pear/bin:$PATH
% ethna
usage: ethna [option] [command] [args...]

available options are as follows:

  -v, --version    show version and exit

available commands are as follows:

  add-action
  add-action-test
  add-app-manager
  add-app-object
  add-entry-point
  add-project
  add-template
  add-test
  add-view  add-view-test
  channel-update
  clear-cache
  help
  i18n
  info-plugin
  install-plugin
  list-plugin
  make-plugin-package
  pear-local
  uninstall-plugin
  upgrade-plugin
% ethna add-project
error occured w/ command [add-project]
  -> Application id isn't set.

usage:
ethna add-project [-b|--basedir=dir] [-s|--skeldir] [-l|--locale] [-e|--encoding] [Application id]

add-project の引数が増えているけど、ここはデフォルトで。

~/Documents/lang/php に sample を作成する。

% ethna add-project -b ~/Documents/lang/php/20100118_ethna sample   

...

project skelton for [sample] is successfully generated at [/Users/xxxx/Documents/lang/php/20100118_ethna]
% cd ~/Sites/
% mkdir sample
% cd sample/
% ln -s ~/Documents/lang/php/20100118_ethna/www/index.php .
% ln -s ~/Documents/lang/php/20100118_ethna/www/css

~/Sites から シンボリックを辿ることを許可しておく必要がある。

% sudo vi /etc/apache2/users/xxxx.conf
<Directory "/Users/xxxx/Sites/">
    Options Indexes MultiViews
+   AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

% sudo /usr/sbin/apachectl graceful
% cat > ~/Sites/sample/.htaccess
+   Options +FollowSymlinks
トラックバック - http://araistudy.g.hatena.ne.jp/czk-htn/20100118