User Tools

Site Tools


redmine install

pg.sql
CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'password' NOINHERIT VALID UNTIL 'infinity';
CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;
ALTER DATABASE "redmine" SET datestyle="ISO,MDY";
mysql.sql
CREATE DATABASE redmine CHARACTER SET utf8mb4;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
install.sh
gem install bundler --user-install
bundle install --path vendor/bundle --without development test rmagick
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production REDMINE_LANG=ru bundle exec rake redmine:load_default_data
mkdir -p tmp tmp/pdf public/plugin_assets
chown -R redmine:redmine files log tmp public/plugin_assets
chmod -R 755 files log tmp public/plugin_assets
gem install puma --user-install
puma.rb
environment 'production'
daemonize false
 
directory '/home/redmine'
rackup 'config.ru'
pidfile '/home/redmine/run/puma.pid'
state_path '/home/redmine/run/puma.state'
stdout_redirect '/home/redmine/run/puma.stdout', 
        '/home/redmine/run/puma.stderr', true
threads 1, 16
bind 'tcp://127.0.0.1:8089'
workers 3

First PagePrevious PageBack to overview