トップ «前の日記(2016年10月13日) 最新 次の日記(2016年11月23日)» 編集

Masa's blog

検索キーワード:

2016年11月13日 Version up tdiary Ver.2.2.2 to 5.0.2 [長年日記]

_ ruby-2.3.1.tar.bz2 from ruby-1.8.7.tar.bz2

$ tar xvf ruby-2.3.1.tar.bz2
$ cd ruby-2.3.1
$ ./configure --without-gmp && make && make check # 1 failed :(
$ sudo make install && sudo ldconfig

_ tdiary-full-v5.0.2.tar.gz

$ mv ~/public_html/diary ~/public_html/diary.backup
$ mkdir ~/public_html/diary
$ tar xvf tdiary-full-v5.0.2.tar.gz
$ cp -r tdiary-full-v5.0.2/* ~/public_html/diary/
$ cd ~/public_html/diary/
$ cp dot.htaccess .htaccess
$ cp tdiary.conf.beginner tdiary.conf

.htaccess

AuthUserFile  /home/m-ito/.htpasswd
Require user  m-ito

tdiary.conf

@data_path = '/home/m-ito/diary'
$ cd /home/m-ito/
$ mkdir diary.backup && cd diary.backup/ && (cd ../diary/ && tar cf - .) | tar xvpif -
$ cd ../diary/
$ for i in `find . -type f`
do
	nkf -w <$i >/tmp/junk && cp /tmp/junk $i
	rm /tmp/junk
done

/home/m-ito/diary/tdiary.conf

date_format = "%Y年%m月%d日"

Plugin selection

search-default.rb

Header,Footer

<%= search_input_form( '' ) %>