외부 mysql 활용
yum install epel-release yum groupinstall "Development Tools" yum install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel yum install httpd httpd-devel yum install ImageMagick ImageMagick-devel ## ubuntu desktop 에서 할때 # sudo apt-get install apache2 curl bison libbison-dev zlib1g-dev libssl-dev sqlite3 libsqlite3-dev autoconf automake build-essential libtool libreadline6-dev libyaml-dev libxml2-dev libcurl4-openssl-dev libssl-dev libgpg-error-dev autotools-dev imagemagick libmagickcore-dev libmagickwand-dev wget http://www.ruby-lang.org/ko/downloads/ tar zxvf ruby-2.3.1.tar.gz cd ruby-2.3.1 ./configure make make install gem install bundler --no-rdoc --no-ri wget http://www.redmine.org/releases/redmine-3.3.0.tar.gz tar xvzf redmine-3.3.0.tar.gz mv redmine-3.0.3 /usr/local/. ln -s redmine-3.0.3 redmine cp config/database.yml.example vi config/database.yml bundle install --without development test postgresql sqlite rake generate_secret_token RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_data #ruby bin/rails server webrick –e production –b 192.168.1.11 bundle exec rails server webrick -e production bundle exec rails server webrick -e production --port=40000 bundle exec rails server webrick -e production --binding=192.168.1.11 --port=40000 # thin 서버로 띄우기 gem install thin vi Gemfile # 하위 추가 gem "thin" bundle install --path vendor/bundle thin start -e production -p 40000 -c /usr/local/redmine --prefix=/redmine curl http://192.168.1.11:40000/ # context path 바꿔보기 cp config/additional_environment.rb additional_environment.rb.example vi config/additional_environment.rb # 하위 추가 config.relative_url_root = '/redmine' thin start -e production -p 40000 -c /usr/local/redmine --prefix=/redmine thin start -d -e production -p 40000 -c /usr/local/redmine --prefix=/redmine curl http://192.168.1.11:40000/redmine # 기존 웹서버 httpd 에 추가하기 ProxyPass /redmine http://192.168.1.11:40000/redmine curl http://dev.ddakker.pe.kr/redmine # 시작/중지/관리 startup.sh stop.sh rake_plugin.sh # 플러그인 설치 wget https://github.com/peclik/clipboard_image_paste/archive/master.zip unzip master.zip mv clipboard_image_paste-master plugins/clipboard_image_paste RAILS_ENV=production rake redmine:plugins (rake_plugin.sh 만들어 놓음) # 설치된 플러그인 1. 이미지 클립보드 붙여 넣기 - Clipboard image paste 2. 일감 진행현황 그래프 - Progressive Projects List plugin 3. 일감 상황 그래프 - Redmine Graphs plugin 4. 로그인 히스토리 - Redmine Login Audit plugin 5. 일감 작업자별 현황 - Redmine (Monitoring & Controlling | Monitoramento & Controle) # 플러그인 삭제 rake redmine:plugins:migrate NAME=플러그임이름 VERSION=0 RAILS_ENV=production rm -Rf plugins/플러그인이름