~ubuntu-branches/ubuntu/utopic/tdiary/utopic

« back to all changes in this revision

Viewing changes to contrib2/io/dbi_io/README.ja

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
!dbi_io
2
2
 
3
 
<dbname>   �ǡ����١���̾('tDiaryDB')
4
 
<user>     �ǡ����١�������³����桼��
5
 
<password> �ǡ����١�������³����ѥ����
6
 
<author>   ��ԡ����塢�ޥ���桼���б�����Ȥ��˻Ȥ��ޤ���
7
 
 
8
 
!!�ǡ����١����κ���
9
 
 
10
 
!!! PostgreSQL�ξ��
 
3
<dbname>   データベース名('tDiaryDB')
 
4
<user>     データベースに接続するユーザ
 
5
<password> データベースに接続するパスワード
 
6
<author>   作者。今後、マルチユーザ対応するときに使います。
 
7
 
 
8
!!データベースの作成
 
9
 
 
10
!!! PostgreSQLの場合
11
11
 
12
12
    $ createdb -h <host> -U <user> -E EUC-JP <dbname>
13
13
    Password: <password>
15
15
    Password: <password>
16
16
    CREATE DATABASE
17
17
 
18
 
!!tdiary.conf���Խ�
 
18
!!tdiary.confの編集
19
19
 
20
20
    #require 'tdiary/pstoreio'
21
21
    #@io_class = TDiary::PStoreIO
22
22
    require 'tdiary/dbi_io'
23
23
    @io_class = TDiary::DbiIO
24
 
    #-- dbi_io�ξ������� --
25
 
    @dbi_driver_url = 'dbi:Pg:<dbname>' # URL�����ꤷ�ޤ���
26
 
    @dbi_user       = '<user>'          # DB�Υ��������
27
 
    @dbi_passwd     = '<password>       # DB�Υѥ����
 
24
    #-- dbi_ioの場合の設定 --
 
25
    @dbi_driver_url = 'dbi:Pg:<dbname>' # URLを設定します。
 
26
    @dbi_user       = '<user>'          # DBのアカウント
 
27
    @dbi_passwd     = '<password>       # DBのパスワード
28
28
    @dbi_author     = '<author>'        # author
29
29
 
30
 
!! �ץ饰����Υ��󥹥ȡ���
31
 
��󥯸�����¸��ɽ���Τ���ˡ��ץ饰�����ʲ��Τ����줫��
32
 
��ˡ�ǥ��󥹥ȡ��뤹��ɬ�פ�����ޤ�
33
 
 
34
 
(1) tdiary.conf��@option['sp.path']�ˡ����Υǥ��쥯�ȥ��
35
 
    ����plugin�Υѥ����ɲä���������̤���refererDbiIO.rb
36
 
    ��ͭ���ˤ��롣
37
 
 
38
 
(2) tDiary�Υ��󥹥ȡ�����ˤ���plugin�ǥ��쥯�ȥ�ˡ�
39
 
    plugin/refererDbiIO.rb�򥳥ԡ����롣
 
30
!! プラグインのインストール
 
31
リンク元の保存・表示のために、プラグインを以下のいずれかの
 
32
方法でインストールする必要があります
 
33
 
 
34
(1) tdiary.confの@option['sp.path']に、このディレクトリに
 
35
    あるpluginのパスを追加し、設定画面からrefererDbiIO.rb
 
36
    を有効にする。
 
37
 
 
38
(2) tDiaryのインストール先にあるpluginディレクトリに、
 
39
    plugin/refererDbiIO.rbをコピーする。