yum -y groupinstall "Development Tools" yum -y install epel-release yum -y install readline-devel zlib-devel libffi-devel libyaml-devel openssl-devel sqlite-devel yum -y install mariadb-server mariadb mariadb-devel
systemctl enable mariadb; systemctl restart mariadb;
mysql_secure_installation
curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -L get.rvm.io | bash -s stable source /etc/profile.d/rvm.sh rvm reload rvm requirements run rvm list known rvm install 2.4 rvm use 2.4 --default
adduser redmine
CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
production: adapter: mysql2 database: redmine host: localhost username: redmine password: my_password
gem install bundler
bundle install --without development test rmagick
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:load_default_data
mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets
bundle exec rails server webrick -e production