File:  [cvs.NetBSD.org] / pkgsrc / devel / ruby-redmine / Attic / MESSAGE
Revision 1.3: download - view: text, annotated - select for diffs
Wed Jan 4 23:05:12 2017 UTC (8 years ago) by rodent
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, HEAD
Make Redmine great again too. General cleanup as well as updating all the
package to latest stable. There's a security issue with nokogiri that's
resolved with this update. This package was tested extensively not only
for build/install but also for functionality. If anyone has problems with
it, please let me know.

Full changelogs (very long) are here:

http://www.redmine.org/projects/redmine/wiki/Changelog_3_3
http://www.redmine.org/projects/redmine/wiki/Changelog_3_2
http://www.redmine.org/projects/redmine/wiki/Changelog_3_1

===========================================================================
$NetBSD: MESSAGE,v 1.3 2017/01/04 23:05:12 rodent Exp $

To use Redmine with nginx, you will need to perform the following steps.

0. Fix some of the Redmine gems (this step will be removed eventually):

	# redmine_fix_gems${RUBY_SUFFIX}.sh

1. If you want to use with MySQL server (by default), install
   databases/mysql5[1|5|6]-* and enable it. Then, create the database.

2. Install nginx httpd server, www/nginx.

3. Setup Redmine database:

	$ mysql -u root -p
	> create database redmine character set utf8;
	> create database redmine_development character set utf8;
	> create user 'redmine'@'localhost' identified by 'redmine_password';
	> grant all privileges on redmine.* to 'redmine'@'localhost';
	> grant all privileges on redmine_development.* to 'redmine'@'localhost';

4. Set the database password for the redmine and redmine_development databases
     in ${PREFIX}/${RM_DIR}/app/config/database.yml;

5. Create secret token and write to
     ${PREFIX}/${RM_DIR}/app/config/configuration.yml and secrets.yml

	# redmine_generate_secret${RUBY_SUFFIX}.sh
	# vi config/configuration.yml
	  [...]
	  secret_token: 'YOUR_SECRET_KEY'
	  [...]
	# vi config/secrets.yml
	  [...]
	  production:
	    secret_key_base: 'YOUR_SECRET_KEY'
	  [...]

6. Import some data to Redmine database, select your locale, and migrate the DB:

	# redmine_migrate_db${RUBY_SUFFIX}.sh

6. Setup nginx.

	# vi ${PREFIX}/etc/nginx/nginx.conf
	http {
	upstream unicorn_redmine {
		server unix:${PREFIX}/${RM_DIR}/unicorn.redmine.sock fail_timeout=0;
	}
	server {
	listen       80;
	server_name  localhost;

	root ${PREFIX}/${RM_DIR}/app;

	try_files $uri @unicorn_redmine;

	location @unicorn_redmine {
		proxy_set_header Host $http_host;
		proxy_pass http://unicorn_redmine;
	}

	error_page   500 502 503 504  /50x.html;
		location = /50x.html {
		root   share/examples/nginx/html;
	}
	}

7. Start Redmine with Unicorn.

	# ${RCD_SCRIPTS_DIR}/redmine_unicorn${RUBY_SUFFIX} start

8. Start nginx.

	# ${RCD_SCRIPTS_DIR}/nginx start

9. Access Redmine with username: admin and password: admin.
===========================================================================

CVSweb <webmaster@jp.NetBSD.org>