참고 링크
http://www.playframework.com/documentation/2.0/Installing
wget http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip
unzip play-2.1.0.zip
mv play-2.1.0 /usr/local/play
vim .bashrc
export PATH=$PATH:/usr/local/play
source ~/.bashrc
yobi는 /home/yobi로 설치
cd /home
git clone https://github.com/naver/yobi.git
cd yobi
play
기다리면 콘솔이 뜬다
start -DapplyEvolutions.default=true -Dhttp.port=9000
한참 다운로드를 진행한다.
Starting server. Type Ctrl+D to exit logs, the server will remain in background
이 메시지가 보이면 준비완료!
방화벽에서 포트를 열어주고
firewall-cmd --permanent --add-port=9000/tcp
firewall-cmd --reload
접속 하면 설정 화면이 보인다.
그리고 마주치는 멘붕 페이지...어쩌라고????????????
당황하지 않고 터미널로 돌아가 Ctrl+D를 살포시 누르고
play stop
play start
서버 재시작 완료!
다시 Ctrl+D를 누르라는 메시지가 보이면 눌러주고 브라우저에서 새로 고침을 한다.
Yobi 설치끝!!
아무나 들어오면 안되니까
yobi/conf/application.conf
#if you want to use sign-up confirm, uncomment below
signup.require.confirm = true
e-mail 발송 할 수 있도록 메일 서버 설정
smtp.user = "UserID"
smtp.password = "passwd"
# false로 해야 실제 메일 발송이 된다.
smtp.mock = false
꼭 "" 으로 묶어준다. 안해주면 삽질함
다시 서버 재시작
이제 아파치와 proxy 연동을 해보자 mod_proxy.so는 기본적으로 올라오니 안써도 된다.
http://www.playframework.com/documentation/2.3.x/HTTPServer
/etc/httpd/conf.d/yobi.conf
<VirtualHost *:80>
ProxyPreserveHost On
#ServerName localhost
ProxyPass /excluded !
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
9000 포트 80 포트 둘다 접속 된다.
그런데 나는 /redmine 의 경로로 redmine을 운영하므로 yobi는 /yobi로 하고 싶다.
yobi.conf 파일은 삭제 하고 redmine의 설정인 passenger.conf에 proxy 설정을 추가한다.
<VirtualHost *:80>
ServerName 127.0.0.1
DocumentRoot /var/www/html
RailsBaseURI /redmine
<Directory /var/www/html>
Options FollowSymLinks
order allow,deny
allow from all
</Directory>
ProxyPreserveHost On
ProxyPass /excluded !
ProxyPass /yobi http://127.0.0.1:9000/yobi
ProxyPassReverse /yobi http://127.0.0.1:9000/yobi
</VirtualHost>
각각의 경로로 접속은 되나 yobi쪽 리소스가 깨진다. 이건 어떻게 해야 할지 찾아봐야겠다.
yobi/conf/application.conf
75번째 줄 #Server 항목 적당한 위치
application.context="/yobi"
redmine, yobi 둘다 잘 동작한다.
하지만 저장소 URL은 yobi가 붙지 않는 문제가 아직 있다.
해결 방법이 올라오면 수정 예정( 버그사항이라 수정예정이라고 함)
0.60 에서 해당 이슈 수정
'지식창고 > 리눅스' 카테고리의 다른 글
우분투에 아파치 설정 하기 (2) | 2015.06.02 |
---|---|
docker에 대한 오해와 이해 (0) | 2014.07.28 |
CentOS 7.0 LAMP 설치 (0) | 2014.07.24 |
CentOS 7 최소 설치 당황스러운점 (1) | 2014.07.10 |
CentOS 6.5 + Jetty 9.1.1 + Solr 4.5.1 (1) | 2014.02.11 |