티스토리 뷰

Developer

redmine

rocksea 2012. 3. 26. 19:50

redmine을 위해 설치해야 할 소스

  • ruby 
  • rubygems
  • mysql
  • redmine
  • passenger


$ sudo apt-get install build-essential openssl libcurl4-openssl-dev libreadline6 libreadline6-dev curl mysql-server libmysqlclient-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config imagemagick


$ sudo curl -L https://get.rvm.io | bash -s stable --ruby


$ source /home/rocksea/.rvm/scripts/rvm


$ echo '[[ -s "/home/rocksea/.rvm/scripts/rvm"]] && source "/home/rocksea/.rvm/scripts/rvm"' >> ~/.bashrc


$ sudo gem install passenger --no-ri --no-rdoc


$ sudo passenger-install-nginx-module


$ git clone git://github.com/jnstq/rails-nginx-passenger-ubuntu.git


$ sudo mv rails-nginx-passenger-ubuntu/nginx/nginx /etc/init.d/nginx

$ sudo chown root:root /etc/init.d/nginx


$ rake db:create


$ rake db:migrate


$ rake generate_secret_token

[ 출처 : http://redminecrm.com/boards/4/topics/448-installing-redmine-2-2-passenger-nginx-rvm-on-ubuntu-12-04 ]


(설치할것들이 너무 많아서 귀찮긴 하지만 저위 link를 타고 들어가면 동영상을 통해 설치하는 방법에 대해 나와있으니 안심해도 됩니다.)




http {
    passenger_root /home/alm/src/passenger-3.0.1;
    passenger_ruby /usr/local/bin/ruby;

    include       mime.types;
    default_type  application/octet-stream;
    #2012.04.23 by rocksea
    client_max_body_size 10m;


    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  test.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        #location / {
        #    root   html;
        #    index  index.html index.htm;
        #}

        location / {
                root   /usr/local/redmine-1.3.2/public;
                index index.html index.htm;
                passenger_enabled on;
        }
        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }
}

 

Database 설정

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: gogo1234
  encoding: utf8


Async Email 전송 설정

smtp 동기, async_smtp는 비동기 형태로 메일을 전송한다.

production:
  delivery_method: :async_smtp
  smtp_settings:
    address: mail.rocksea.co.kr
    port: 25
    domain: rocksea.co.kr
    authentication: :none

 

'Developer' 카테고리의 다른 글

[MongoDB#1] MongoDB Installation Guide.  (2) 2012.04.13
Media WIKI 설치  (0) 2012.03.28
Jboss Clustering  (0) 2012.03.19
Apache CGI 연동  (0) 2012.03.19
Apache2.2 + SSL 설치  (0) 2012.03.15
댓글