LoginSignup
1
2

More than 5 years have passed since last update.

GCP > Cloud Launcher > redmine 設定 

Last updated at Posted at 2018-03-16

smtp server

Google Compute Engine では、ポート 25、465、587 での送信接続は許可されません。 とのこと。
メール送信はSendGrid、Mailgun、Mailjet などを使えとな。

ちなみに設定方法は以下

Bitnami Redmine for Google Cloud Platform

vi /opt/bitnami/apps/redmine/htdocs/config/configuration.yml

default:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.gmail.com"
      port: 587
      domain: "smtp.gmail.com"
      authentication: :plain
      user_name: "username@gmail.com"
      password: "password"

メール通知のテスト
「管理」→「設定」画面で「メール通知」タブを開き、画面左下の「テストメールを送信」というリンクをクリックしてください。

phpMyAdmin

sudo su

change config

vi /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf

allow all

Allow from 127.0.0.1 → Allow from all
Require local → Require all granted

restart

sudo su
/opt/bitnami/ctlscript.sh restart apache

access blowser

plugin

update gem

gem -v
gem install rubygems-update --source http://rubygems.org/
update_rubygems
gem -v

けっこう時間かかる。10分以上

cd /opt/bitnami/apps/redmine/htdocs/plugins

ファイル配置

ファイルの権限を変えておく

sudo chown -R bitnami *
sudo chgrp -R daemon *

bundle install

sudo bundle install
sudo bundle install --no-deployment
sudo gem update --system 
sudo bundle install

sudo bundle exec rake db:migrate RAILS_ENV=production
sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production

mysql2のバージョンが古いというエラーがで場合

sudo gem install mysql2 -v '0.4.10'

その際、以下のようなエラーが出る事がある。

/bin/install -c -m 0755 mysql2.so ./.gem.20180707-5833-lu4pnq/mysql2
make: /bin/install: Command not found

Gem install mysql2 -v '0.4.10' make "DESTDIR=" install make: /bin/install :Command not found - Redmine - Bitnami Community

解決策

/opt/bitnami/ruby/lib/ruby/2.3.0/x86_64-linux/rbconfig.rb
を編集する。

CONFIR[‘INSTALL’] = ‘/bin/install -C ‘
を以下に
CONFIG[‘INSTALL’] = ‘/usr/bin/install -C ‘

今回インストールしたもの 2018/7/7

sudo gem install mysql2 -v '0.4.10'
sudo gem install rmagick -v '2.16.0'

再起動

sudo /opt/bitnami/ctlscript.sh restart

エラーが出る場合

Usabilityでundefined method `rmp_render_previous' とエラーが出る場合の対処 

Usability - Plugins - Redmine

sudo git clone https://bitbucket.org/dkuk/a_common_libs.git

オーナーを変更して、
sudo chown -R bitnami *
sudo chgrp -R daemon *

sudo bundle installを一通りやって、
再起動で動作した。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2