검색결과 리스트
redmine 에 해당되는 글 3건
- 2010/04/01 [Linux] 리눅스에서 서비스 등록하기
- 2010/01/08 [redmine] PID file tmp/pids/mongrel.3001.pid already exists
- 2009/12/23 [Redmine] (펌)PDF export시 한글 깨지는 문제 (3)
CentOS에 bitnami를 이용해서 redmine을 설치한후 redmine을 서비스로 등록해서 자동시작하기를 예로 들어보겠습니다.
환경
1. root로 로그인합니다.
2. 레드마인 설치 경로에 있는 ctlscript.sh 파일을 init.d로 복사합니다.
주의~! 뒤에 확장자 sh는 빼주세요
3. 복사가 끝나면 복사한 파일을 vim으로 열어서 아래 하늘색 박스의 파란 텍스트를 추가해 줍니다.
5. redmine 서비스를 시작합니다. 아래 하늘색 박스와 비슷한 메세지가 나온다면 정상적으로 실행된겁니다.
6. bitnami-redmine 에서 사용할 수 있는 명령어는 start, stop, status, restart, help가 있습니다.
관련글
'개발 이야기 > Linux' 카테고리의 다른 글
| [Ubuntu] flashplayer 설치하기 (0) | 2010/09/26 |
|---|---|
| [Kubuntu] NetworkManager is disabled (0) | 2010/09/26 |
| [Linux] 리눅스에서 서비스 등록하기 (0) | 2010/04/01 |
| [리눅스] 파일 압축 관리 (0) | 2010/01/10 |
| [tomcat] Cannot find ... bin/catalina.sh (0) | 2009/12/20 |
| [우분투] 터치패드를 인식하지 못할 때... (5) | 2009/12/07 |
[redmine] PID file tmp/pids/mongrel.3001.pid already exists
개발 이야기/ALM(Application lifecycle management) 2010/01/08 09:33에러 발생 상황
bitnami로 설치한 redmine에서 htttp://url은 잘 보이는데 http://url/redmine에서 503 에러가 발생에러 메시지
에러발생 원인
해결방법
'개발 이야기 > ALM(Application lifecycle management)' 카테고리의 다른 글
| [redmine] PID file tmp/pids/mongrel.3001.pid already exists (0) | 2010/01/08 |
|---|---|
| [Redmine] (펌)PDF export시 한글 깨지는 문제 (3) | 2009/12/23 |
| [SVN 에러] NoSuchChangeset 발생시... (0) | 2009/04/10 |
| [SVN 에러] Can't create directory 발생시... (0) | 2009/04/10 |
※ 이 글은 박인서님의 블로그에서 퍼온글입니다.
redmine 에서 Gantt Chart 에서 한글이 제대로 나오는 것을 확인 한 후, pdf 에서 한글이 나오지 않는 이유를 몰라 한참을 헤매다가 결국 방법을 알았습니다.
redmine/app/helpers 에 있는 ifpdf_helper.rb 에 language 가 한글로 되어 있을 때
pdf에 UHC Font 를 출력하는 routine 이 빠져 있었고,
redmine\vendor/plugins/rfpdf/lib/rfpdf
에 있는 korean.rb 에 일부 오류가 있었습니다.
ifpdf_helper.rb 는 다음과 같이 고칩니다. (0.80 기준)
[code]
when 'zh-tw'
extend(PDF_Chinese)
AddBig5Font()
@font_for_content = 'Big5'
@font_for_footer = 'Big5'
when 'ko'
extend(PDF_Korean)
AddUHCFont()
@font_for_content = 'UHC'
@font_for_footer = 'UHC'
[/code]
그리고, korean.rb 는 다음과 같이 고칩니다.
[code]
def AddUHCFont(family='UHC',name='HYGoThic-Medium')
#Add UHC font with proportional
cw=UHC_widths
cMap='KSCms-UHC-H'
registry={'ordering'=>'Korea1','supplement'=>1}
AddCIDFonts(family,name,cw,cMap,registry)
end
def AddUHChwFont(family='UHC-hw',name='HYGoThic-Medium')
#Add UHC font with half-witdh Latin
32.upto(126) do |i|
cw[i.chr]=500
end
cMap='KSCms-UHC-HW-H'
registry={'ordering'=>'Korea1','supplement'=>1}
AddCIDFonts(family,name,cw,cMap,registry)
end
[/code]
(사실상 고딕체가 출력되게 할 뿐이지, 윗부분이 잘못된 것은 아닙니다.)
문제 부분은 아래 부분입니다.
[code]
def MultiCell(w,h,txt,border=0,align='L',fill=0)
if(@CurrentFont['type']=='Type0')
MBMultiCell(w,h,txt,border,align,fill)
else
super(w,h,txt,border,align,fill)
end
end
def MBMultiCell(w,h,txt,border=0,align='L',fill=0)
#Multi-byte version of MultiCell()
cw=@CurrentFont['cw']
if(w==0)
w=@w-@rMargin-@x
end
wmax=(w-2*@cMargin)*1000/@FontSize
s=txt.gsub("\r",'')
nb=s.length
if(nb>0 and s[nb-1]=="\n")
nb-=1
end
b=0
if(border)
if(border==1)
border='LTRB'
b='LRT'
b2='LR'
else
b2=''
if(border.to_s.index('L'))
b2+='L'
end
if(border.to_s.index('R'))
b2+='R'
end
b=border.to_s.index('T') ? b2+'T' : b2
end
end
sep=-1
i=0
j=0
l=0
nl=1
while(i<nb)
#Get next character
c=s[i]
#Check if ASCII or MB
ascii=(c<128)
if(c.chr=="\n")
#Explicit line break
Cell(w,h,s[j,i-j],b,2,align,fill)
i+=1
sep=-1
j=i
l=0
nl+=1
if(border and nl==2)
b=b2
end
next
end
if(!ascii)
sep=i
ls=l
elsif(c==' ')
sep=i
ls=l
end
l+=ascii ? (cw[c.chr] || 0) : 1100
if(l>wmax)
#Automatic line break
if(sep==-1 or i==j)
if(i==j)
i+=ascii ? 1 : 3
end
Cell(w,h,s[j,i-j],b,2,align,fill)
else
Cell(w,h,s[j,sep-j],b,2,align,fill)
i=(s[sep]==' ') ? sep+1 : sep
end
sep=-1
j=i
l=0
# nl+=1
if(border and nl==2)
b=b2
end
else
i+=ascii ? 1 : 3
end
end
#Last chunk
if(border and not border.to_s.index('B').nil?)
b+='B'
end
Cell(w,h,s[j,i-j],b,2,align,fill)
@x=@lMargin
end
[/code]
즉, def MBMultiCell(w,h,txt,border=0,align='L',fill=0) 의 부분을 chinese.rb 화일의 것으로 교체했습니다.
아래 windows 용 rb 화일을 첨부합니다.
'개발 이야기 > ALM(Application lifecycle management)' 카테고리의 다른 글
| [redmine] PID file tmp/pids/mongrel.3001.pid already exists (0) | 2010/01/08 |
|---|---|
| [Redmine] (펌)PDF export시 한글 깨지는 문제 (3) | 2009/12/23 |
| [SVN 에러] NoSuchChangeset 발생시... (0) | 2009/04/10 |
| [SVN 에러] Can't create directory 발생시... (0) | 2009/04/10 |