<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iWebDev&#039;s blog &#187; OpenBSD</title>
	<atom:link href="http://www.iwebdev.it/blog/?feed=rss2&#038;tag=openbsd" rel="self" type="application/rss+xml" />
	<link>http://www.iwebdev.it/blog</link>
	<description>and everything goes around</description>
	<lastBuildDate>Sat, 06 Aug 2011 23:08:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Redmine as project management on OpenBSD</title>
		<link>http://www.iwebdev.it/blog/?p=229</link>
		<comments>http://www.iwebdev.it/blog/?p=229#comments</comments>
		<pubDate>Sat, 06 Aug 2011 23:06:55 +0000</pubDate>
		<dc:creator>to</dc:creator>
				<category><![CDATA[Management]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Project management]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Ruby on rails]]></category>

		<guid isPermaLink="false">http://www.iwebdev.it/blog/?p=229</guid>
		<description><![CDATA[Redmine is a web-based project management and bug-tracking tool, it includes calendar and Gantt charts to aid visual representation of projects and their deadlines and supports multiple projects. The integration throughout the entire system is excellent and we can create nested subprojects and move issues/tickets from one project to another. For each project we are [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Redmine</strong> is a web-based project management and <strong>bug-tracking tool</strong>, it includes calendar and Gantt charts to aid visual representation of projects and their deadlines and supports multiple projects. The integration throughout the entire system is excellent and we can create nested <strong>subprojects</strong> and move issues/tickets from one project to another. For each project we are able to assign different users and turn certain functionality (milestones, time tracking, source control,..) on and off. This article describes how to install Redmine on <strong>OpenBSD 4.9</strong>. We will be using the official OpenBSD port from CVS. We will start by installing the prerequisites as binaries because if you have a fast internet connection, it is faster than building the ports from src. Lets install <strong>Ruby-On-Rails</strong>:</p>
<blockquote><p>pkg_add -i ruby-1.9.2.136p0</p>
<p>pkg_add ruby-gems</p></blockquote>
<p>Official releases include the appropriate Rails version in their <code>vendor</code> directory. So no particular action is needed. If we checkout the source from the Redmine repository, we can install a specific Rails version on your machine by running:</p>
<blockquote><p>gem18 install rails -v=2.3.11</p></blockquote>
<p>Install Rack:</p>
<blockquote><p>gem28 install rack -v=1.1.0</p>
<p>gem18 install -v=0.4.2 i18n</p>
<p>gem18 install mysql</p></blockquote>
<p><strong>Redmine</strong></p>
<p>It is recommended that the majority of users install the proper point releases of red mine. It is not recommended to install redmine from trunk.</p>
<p><strong>Installation procedure</strong></p>
<ul>
<li>Get the Redmine source code by either downloading a packaged release or checking out the code repository. See <a href="http://www.redmine.org/projects/redmine/wiki/Download">Download</a>.</li>
<li>Create an empty database and accompanying user named &#8221;redmine&#8221; for example.</li>
</ul>
<blockquote><p>create database redmine character set utf8;<br />
create user &#8216;redmine&#8217;@'localhost&#8217; identified by &#8216;my_password&#8217;;<br />
grant all privileges on redmine.* to &#8216;redmine&#8217;@'localhost&#8217;;</p></blockquote>
<ul>
<li>Copy <strong>config/database.yml.example</strong> to <strong>config/database.yml</strong> and edit this file in order to configure your database settings for &#8220;production&#8221; environment. Example for a MySQL database (we have also to specify the mysql socket file):</li>
</ul>
<blockquote><p>production:<br />
adapter: mysql<br />
database: redmine<br />
host: localhost<br />
port: 3307<br />
username: redmine<br />
socket: /var/www/var/run/mysql/mysql.sock<br />
password: my_password</p></blockquote>
<ul>
<li>Generate a session store secret.</li>
</ul>
<blockquote><p>rake generate_session_store</p></blockquote>
<ul>
<li>Create the database structure, by running the following command under the application root directory. It will create tables and an administrator account.</li>
</ul>
<blockquote><p>RAILS_ENV=production rake db:migrate</p></blockquote>
<ul>
<li>Insert default configuration data in database, by running the following command:</li>
</ul>
<blockquote><p>RAILS_ENV=production rake redmine:load_default_data</p></blockquote>
<ul>
<li>Test the installation by running WEBrick web server:</li>
</ul>
<blockquote><p>ruby script/server webrick -e production</p></blockquote>
<p>Once WEBrick has started, point your browser to <a href="http://localhost:3000/">http://localhost:3000/</a>. You should now see the application welcome page:</p>
<p><a href="http://www.iwebdev.it/blog/wp-content/uploads/2011/08/redmine-login.png"><img class="aligncenter size-medium wp-image-234" title="redmine-login" src="http://www.iwebdev.it/blog/wp-content/uploads/2011/08/redmine-login-300x151.png" alt="redmine login" width="300" height="151" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebdev.it/blog/?feed=rss2&#038;p=229</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
