Deploy Redmine on CentOS6.X/7!


Launch your console and paste in the following sample code:

    title: Install basic package
    yum update -y
    yum install -y mysql-server rubygems ruby-devel mysql-devel zlib-devel curl-devel openssl-devel svn
    yum install -y ruby rubygems
    yum install -y svn
    yum install -y git
    yum install -y ruby ImageMagick-devel
    yum install -y graphviz
    yum install -y httpd-devel apr-devel apr-util-devel gcc ruby-devel gcc-c++ make postgresql-devel ImageMagick-devel sqlite-devel perl-LDAP mod_perl perl-Digest-SHA
    chkconfig mysqld on --level 35
    service mysqld restart

Create default user and database in MySQL:

    title: Install basic package
    create database redmine character set utf8;
    create user 'redmine'@'localhost' identified by 'password';
    grant all privileges on redmine.* to 'redmine'@'localhost';
    flush privileges;

Get Redmine Binary:

NOTE: Check new versions here:


    title: Install basic package
    cd /var/www/redmine
    mkdir -m 1777 -p tmp
    mkdir -m 1777 -p tmp/pdf public/plugin_assets
    mkdir -m 1777 -p tmp/cache
    touch log/production.log
    chmod 0666 log/production.log
    chown -R root:root ../redmine

    gem install bundler
    bundle install --without development test postgresql sqlite
    cd /var/www/redmine/config

Copy your database.yml and configuration.yml

    title: Last actions
    bundle install --without development test postgresql sqlite
    rake generate_secret_token
    RAILS_ENV=production rake db:migrate
    RAILS_ENV=production rake redmine:plugins:migrate
    RAILS_ENV=production rake redmine:load_default_data
    gem install passenger
    chkconfig nginx-passenger on
    service nginx-passenger restart


Test-Mode on port 3000:

    title: Test command
    ruby script/rails server webrick -e production