[CentOS] Ruby on Rails + Redmine + PostgreSQL

1. Ruby 설치.
yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc


2.  ruby gems 설치
다운로드 : http://rubyforge.org/frs?group_id=126&release_id=37073

# tar xvf rubygems-1.3.5.taz
# cd rubygems-1.3.5
# ruby setup.rb


3. rails 설치.
참고 : http://www.redmine.org/wiki/redmine/RedmineInstall

위 주소에서 요구하는 rails 버전 설치.

# gem install -v=2.2.2 rails --include-dependencies

4. redmine 설치
다운로드 : http://rubyforge.org/frs/?group_id=1850&release_id=34563
or http://www.redmine.org/wiki/redmine/Download

# tar xvf redmine-0.8.7.tar.gz

5. postgresql 설치

# yum install postgresql postgresql-devel
# gem install pg    <-- ruby 와 연결.


6. postgresql 설정
# su - postgres
$ createuser -s -l redmine
$ createdb redmine
$ psql
postgres=# alter user redmine with encrpted password 'redmin';
ALTER ROLE
postgres=# alter database redmine owner to redmine;
ALTER DATABASE
postgres=# \q


7. redmine 환경 설정.

# cd /usr/local/redmin   <- redmin 압축을 푼 디렉토리
# cp config/databases.yml.example config/databases.yml
# vi databases.yml

production 으로 뛰울것이므로 production 만 수정.

production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: redmine
encoding: utf8
schema_search_path:


8. db 복사.
# rake db:migrate RAILS_ENV="production"
# rake redmine:load_default_data RAILS_ENV=”production


9.  서버 실행
# ruby script/server -e production


localhost:3000 으로 뛰워서 뜨면 성공

기본 관리자 계정.
id : admin
pwd : admin

출처 : http://srue.net/

'Dev > RedMine' 카테고리의 다른 글

레드마인 설치하기  (0) 2011.12.07

+ Recent posts