deployment:apps:redmine

This is an old revision of the document!


Redmine – Project Management Deployment (Debian 13)

apt update && sudo apt upgrade -y
apt install ruby3.3 postgresql-17 apache2 -y 
apt -y install ruby-dev ruby-psych libyaml-dev libxml2-dev libxslt1-dev libpq-dev zlib1g-dev libcurl4-openssl-dev postgresql-server-dev-all libapache2-mod-passenger imagemagick 

Pastikan ambil packages web versi terakhir ⇒ https://www.redmine.org/projects/redmine/wiki/download

# Download redmine packages last version
wget https://www.redmine.org/releases/redmine-6.1.1.tar.gz
# Extract packages
tar zxvf redmine-6.1.1.tar.gz
# Pindah ke folder webserver
mv redmine-6.1.1 /var/www/redmine
su - postgres
psql
CREATE USER redmine WITH PASSWORD 'password';
CREATE DATABASE redmine OWNER redmine;
\q

Notes : ganti password dengan password yang benar

* Konfigurasi database

nano /var/www/redmine/config/database.yaml 
database.yaml
production:
  adapter: postgresql
  database: redmine
  host: localhost
  username: redmine
  password: password
  encoding: utf8

Notes : ganti password dengan password yang benar

* Konfigurasi SNPT

Untuk SMTP Server kita akan gunakan google Gmail : Google App Password For SMTP

nano /var/www/redmine/config/configuration.yaml 
configuration.yaml
production:
  delivery_method: :smtp
  smtp_settings:
    enable_starttls_auto: true
    address: "smtp.gmail.com"
    port: 587
    domain: "smtp.gmail.com"
    authentication: :plain
    user_name: "[email protected]"
    password: "sandi-aplikasi"

Notes : ganti [email protected] dengan akun gmail yang aktif dansandi-aplikasi dengan sandi yang di generate oleh gmail

nano /etc/apache2/sites-available/redmine.conf
redmine.conf
<VirtualHost *:80>
    ServerName redmine.example.com
 
    DocumentRoot /var/www/redmine/public
 
    <Directory /var/www/redmine/public>
        Require all granted
        AllowOverride all
        Options -MultiViews
    </Directory>
 
    RailsEnv production
    PassengerEnabled on
 
    ErrorLog ${APACHE_LOG_DIR}/redmine_error.log
    CustomLog ${APACHE_LOG_DIR}/redmine_access.log combined
</VirtualHost
a2ensite redmine.conf
systemctl reload apache2

  • deployment/apps/redmine.1770430448.txt.gz
  • Last modified: 2026/02/07 09:14
  • by ilyasa