deployment:apps:redmine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
deployment:apps:redmine [2026/02/06 13:25] – [Konfigurasi Redmine] ilyasadeployment:apps:redmine [2026/02/07 09:17] (current) – [Configure Webserver (apache2)] ilyasa
Line 12: Line 12:
 ==== Install  dependency ==== ==== Install  dependency ====
 <code bash> <code bash>
-apt -y install ruby-dev ruby-psych postgresql-server-dev-all libxslt1-dev libyaml-dev libxml2-dev libpq-dev libcurl4-openssl-dev zlib1g-dev apache2-dev gcc g++ make patch imagemagick +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 
 </code> </code>
  
Line 58: Line 58:
  
 * **Konfigurasi SNPT** * **Konfigurasi SNPT**
-[[tools:gmail:apppassword|]]+ 
 +Untuk SMTP Server kita akan gunakan google [[tools:gmail:apppassword|]] 
 <code bash> <code bash>
-nano /var/www/redmine/config/database.yaml +nano /var/www/redmine/config/configuration.yaml 
 </code> </code>
  
-<code yaml database.yaml>+<code yaml configuration.yaml>
 production: production:
-  adapterpostgresql +  delivery_method:smtp 
-  databaseredmine +  smtp_settings
-  hostlocalhost +    enable_starttls_autotrue 
-  usernameredmine +    address"smtp.gmail.com" 
-  passwordpassword +    port587 
-  encodingutf8+    domain: "smtp.gmail.com" 
 +    authentication: :plain 
 +    user_name: "[email protected]" 
 +    password"sandi-aplikasi"
 </code> </code>
-//Notes : ganti ''password'' dengan password yang benar//+//Notes : ganti ''[email protected]'' dengan akun gmail yang aktif dan''sandi-aplikasi'' dengan sandi yang di generate oleh gmail//
  
 +==== Configure Webserver (apache2) ====
 +<code bash>
 +nano /etc/apache2/sites-available/redmine.conf
 +</code>
  
 +<code 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
 +</code>
 +<code bash>
 +a2ensite redmine.conf
 +systemctl reload apache2
 +</code>
 +Tambahkan records dan access url sesuai domain yang di konfigurasi pada webserver http://redmine.example.com
 +{{ :deployment:apps:redmine.png?nolink |}}
  
  • deployment/apps/redmine.1770359153.txt.gz
  • Last modified: 2026/02/06 13:25
  • by ilyasa