<?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>GIS and Web Tricks &#187; ruby on rails</title>
	<atom:link href="http://www.bernawebdesign.ch/byteblog/tagged/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bernawebdesign.ch/byteblog</link>
	<description>Thougts and tricks on GIS, web development and FOSS</description>
	<lastBuildDate>Tue, 31 Jan 2012 23:52:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Redmine on (bluehost) shared hosting</title>
		<link>http://www.bernawebdesign.ch/byteblog/2009/07/02/installing-redmine-on-bluehost-shared-hosting/</link>
		<comments>http://www.bernawebdesign.ch/byteblog/2009/07/02/installing-redmine-on-bluehost-shared-hosting/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 12:56:07 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.bernawebdesign.ch/byteblog/?p=3</guid>
		<description><![CDATA[script to install readmine  0.8.4 on a shared host that offers ruby on rails. ]]></description>
			<content:encoded><![CDATA[<p>Hi, here a script to install readmine  0.8.4 (<a href="http://redmine.org">www.readmine.org</a>) on a shared host that offers ruby on rails. enjoy<span id="more-3"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#automatic install of redmine 0.8.4 (http://www.redmine.org/) on a shared server (tested on bluehost)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#AUTHOR: Marco Bernasocchi (http://www.bernawebdesign.ch)</span>
<span style="color: #666666; font-style: italic;">#LICENSE: http://www.gnu.org/licenses/gpl-3.0.html</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#BEFORE starting:</span>
<span style="color: #666666; font-style: italic;"># - create an empty DB (using cpanel) and a DB user with full permissions on the db</span>
<span style="color: #666666; font-style: italic;"># - create a mail user used to send out mails (quota can be set to 1Mb since you just need to send mails with it)</span>
<span style="color: #666666; font-style: italic;"># - cd into the dir you want to install to. (for example /home/username/railsApps/redmine)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#AFTER (not mandatory):</span>
<span style="color: #666666; font-style: italic;"># - create a subdomain (in cpanel) for redmine and link it to the public folder in redmine</span>
<span style="color: #666666; font-style: italic;"># example: </span>
<span style="color: #666666; font-style: italic;"># 	delete the default created folder</span>
<span style="color: #666666; font-style: italic;"># 	rm -rf /home/username/public_html/redmine/</span>
<span style="color: #666666; font-style: italic;">#	create symlink to the public folder</span>
<span style="color: #666666; font-style: italic;"># 	ln -s /home/username/railsApps/redmine/public /home/username/public_html/redmine		</span>
<span style="color: #666666; font-style: italic;"># now redmine is located at http://yoursubdomain.example.com</span>
<span style="color: #666666; font-style: italic;"># login: admin</span>
<span style="color: #666666; font-style: italic;"># passw: admin</span>
<span style="color: #666666; font-style: italic;">#set this vars</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">MY_DB</span>=<span style="color: #ff0000;">&quot;dbName&quot;</span>
<span style="color: #007800;">MY_DB_USER</span>=<span style="color: #ff0000;">&quot;dbUser&quot;</span>
<span style="color: #007800;">MY_DB_PASSW</span>=<span style="color: #ff0000;">&quot;dbPassw&quot;</span>
<span style="color: #007800;">MY_DOMAIN</span>=<span style="color: #ff0000;">&quot;example.com&quot;</span>
<span style="color: #007800;">MY_MAIL_SUBDOMAIN</span>=<span style="color: #ff0000;">&quot;mail.&quot;</span>
<span style="color: #007800;">MY_MAIL_PORT</span>=<span style="color: #ff0000;">&quot;26&quot;</span>
<span style="color: #007800;">MY_MAILER</span>=<span style="color: #ff0000;">&quot;user+example.com&quot;</span>
<span style="color: #007800;">MY_MAILER_PASSW</span>=<span style="color: #ff0000;">&quot;mailPassw&quot;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#get redmine 0.8.4</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">56909</span><span style="color: #000000; font-weight: bold;">/</span>redmine-0.8.4.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf redmine-0.8.4.tar.gz
<span style="color: #c20cb9; font-weight: bold;">rm</span> redmine-0.8.4.tar.gz
<span style="color: #c20cb9; font-weight: bold;">mv</span> redmine-0.8.4<span style="color: #000000; font-weight: bold;">/*</span> .
<span style="color: #c20cb9; font-weight: bold;">rmdir</span> redmine-0.8.4
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#use fastCGI dispatcher</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> public<span style="color: #000000; font-weight: bold;">/</span>dispatch.fcgi.example public<span style="color: #000000; font-weight: bold;">/</span>dispatch.fcgi
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#set some permissions</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> public<span style="color: #000000; font-weight: bold;">/</span>dispatch.fcgi
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> tmp
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> log
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#force production environnement</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s|# ENV\[|ENV\[|g'</span> config<span style="color: #000000; font-weight: bold;">/</span>environment.rb <span style="color: #000000; font-weight: bold;">&gt;</span> TMPFILE <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> TMPFILE config<span style="color: #000000; font-weight: bold;">/</span>environment.rb
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#create config/database.yml</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'production:'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' adapter: mysql'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' database: '</span><span style="color: #007800;">$MY_DB</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' host: localhost'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' username: '</span><span style="color: #007800;">$MY_DB_USER</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' password: '</span><span style="color: #007800;">$MY_DB_PASSW</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' encoding: utf8'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#create config/email.yml</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'# Outgoing email settings'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'production:'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'  delivery_method: :smtp'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'  smtp_settings:'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    address: '</span><span style="color: #007800;">$MY_MAIL_SUBDOMAIN</span><span style="color: #007800;">$MY_DOMAIN</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    port: '</span><span style="color: #007800;">$MY_MAIL_PORT</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    domain: '</span><span style="color: #007800;">$MY_DOMAIN</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    authentication: :login'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    user_name: '</span><span style="color: #007800;">$MY_MAILER</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'    password: '</span><span style="color: #007800;">$MY_MAILER_PASSW</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> config<span style="color: #000000; font-weight: bold;">/</span>email.yml
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#create app</span>
rake db:migrate <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span>
rake redmine:load_default_data <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span></pre></div></div>

<p>If you plan to integrate with a repository don&#8217;t forget to check the settings>repositories tab, where it says &#8220;Fixing keywords&#8221;, it is a very cool function that allows you to automatically change the issue status by using keywords in the commit message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bernawebdesign.ch/byteblog/2009/07/02/installing-redmine-on-bluehost-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

