운영하기
Alpha
- TeamCity : http:\/\/stone:8111
- Admin : http:\/\/stone:9999
- API : http:\/\/stone:8080
- Swagger UI : http:\/\/stone:8080\/swagger-ui.html
stone 호스트는 자신의 호스트 파일에 Stone 개발 서버 IP 를 등록하여 사용한다.
MySQL
root 계정으로 실행
cd /usr/local/mysql/bin
./mysqld_safe &
TeamCity
devel 계정으로 실행
cd /home/devel/TeamCity/bin
./startup.sh
cd /home/devel/TeamCity/buildAgent/bin
./agent.sh start
어드민 계정 비밀번호를 잊어버렸을 경우 ${TEAMCITY_HOME}\/logs\/catalina.out 파일에 서버 시작시
Super user authentication token: "xxxxxxxxxxxx".
와 같은 메세지가 기록된다. 로그인시 id 값은 비워두고 패스워드에 해당 토콘을 입력하면 슈퍼 유저 계정으 로그인할 수 있다.
Redmine
devel 계정으로 실행
su - devel
cd /www/redmine
bundle exec rails server webrick -e production
Supervisor
Key | Value |
---|---|
설정파일 | /etc/supervisord.conf |
supervisord 대몬이 떠있어야한다. root 계정으로 다음과 같이 실행한다.
supervisord
설정이 변경되었을 경우에는 반영하기 작업을 해줘야한다.
supervisorctl reread
supervisorctl update
supervisord 대몬이 상주할 때 어플리케이션들을 실행할 수 있다.
Stone API
root
supervisorctl [start/stop/restart] stone-api
Stone Admin Web
supervisorctl [start/stop/restart] stone-admin