<?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>Dragly &#187; hosting</title>
	<atom:link href="http://dragly.org/tag/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://dragly.org</link>
	<description>It was about time I started writing my own tutorials to share some of the knowledge I&#039;ve picked up from around.</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:57:04 +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>Loading local gems in cPanel shared host</title>
		<link>http://dragly.org/2011/04/25/loading-local-gems-in-cpanel-shared-host/</link>
		<comments>http://dragly.org/2011/04/25/loading-local-gems-in-cpanel-shared-host/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 22:08:15 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[ProISP]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=447</guid>
		<description><![CDATA[I had some trouble today figuring out why my Redmine installation wouldn&#8217;t start running on my shared server. I received the following error in my log/mongrel.log file: ** Starting Rails with production environment... Missing the i18n 0.4.2 gem. Please `gem &#8230; <a href="http://dragly.org/2011/04/25/loading-local-gems-in-cpanel-shared-host/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had some trouble today figuring out why my Redmine installation wouldn&#8217;t start running on my shared server. I received the following error in my log/mongrel.log file:</p>
<pre class="brush:plain">** Starting Rails with production environment...
Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`</pre>
<p>Now, I had finally gotten rid of this problem while using SSH by running</p>
<pre class="brush:shell">export GEM_PATH=/home/&lt;my username&gt;/ruby/gems</pre>
<p>in terminal (or adding it to .bashrc), resulting in successful rake commands and running the server with WEBrick. However, Mongrel seemed to have serious issues with loading the gems in my local files.</p>
<p>This should be solved by adding</p>
<pre class="brush:ruby">ENV['GEM_PATH']= "/home/&lt;my username&gt;/ruby/gems:/usr/lib/ruby/gems/1.8"</pre>
<p>to the environment.rb file, but it did not. Apparently this is because Mongrel loads rubygems by itself, ignoring any environment variables set after this. Therefore, the below fine hack by Rui Lopez found <a href="http://rubyforge.org/pipermail/mongrel-users/2007-February/002885.html">on this page</a>, became necessary:</p>
<pre class="brush:ruby">ENV['GEM_PATH']= "/home/&lt;my username&gt;/ruby/gems:/usr/lib/ruby/gems/1.8"
require 'rubygems'; Gem.clear_paths;
Gem.instance_variable_set(:@searcher, nil)</pre>
<p>As Rui puts it himself:</p>
<blockquote>
<pre>[This] clears the internal cache used by rubygems, and forces it to
re-read the GEM_PATH env. variable.</pre>
</blockquote>
<p>As he also points out, it might not be the cleanest hack, but it works. And that makes me happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/04/25/loading-local-gems-in-cpanel-shared-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving around and going to github</title>
		<link>http://dragly.org/2010/03/24/moving-around-and-github/</link>
		<comments>http://dragly.org/2010/03/24/moving-around-and-github/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 08:03:00 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://dragly.org/2010/03/24/moving-around-and-github/</guid>
		<description><![CDATA[I don&#8217;t think you&#8217;ll notice, but I&#8217;ve just moved this page permanently to dragly.org. There seems to have been some problems getting this site indexed properly when it was hosted on a subdomain of dragly.com. To get the site ut &#8230; <a href="http://dragly.org/2010/03/24/moving-around-and-github/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t think you&#8217;ll notice, but I&#8217;ve just moved this page permanently to dragly.org. There seems to have been some problems getting this site indexed properly when it was hosted on a subdomain of dragly.com. To get the site ut to speed I decided to move it. After all, what is a webpage without visitors? And how would you get here without the site being visible?</p>
<div id="attachment_238" class="wp-caption alignright" style="width: 310px"><a href="http://dragly.org/wp-content/uploads/2010/03/yafaray-2010-03-25_033548.png" rel="lightbox[229]"><img class="size-medium wp-image-238 " title="Github wallpaper created in Blender." src="http://dragly.org/wp-content/uploads/2010/03/yafaray-2010-03-25_033548-300x225.png" alt="Alt text" width="300" height="225" /></a><p class="wp-caption-text">I&#39;ve found that github offers just what I need to host everything from small to big projects.</p></div>
<p>Until now we have been hosting dragly.com at <a href="http://one.com">One.com</a>, but since they don&#8217;t support several domains I&#8217;m considering to move everything to <a href="http://ProISP.no">ProISP.no</a> where I&#8217;m currently hosting dragly.org. At the same time I think we&#8217;ll have to do something about those outdated webpages we&#8217;ve got there. We haven&#8217;t really updated those in a while.</p>
<p>On a completely different topic I&#8217;m trying out git at the moment as an alternative to Subversion. Way too many people have been talking positively about it lately, so I figured I needed to give git a shot.</p>
<p>First of all I&#8217;ve set up a profile over at <a href="http://github.com/dragly">github</a> and am going to upload a few of my projects during the next couple of weeks. I&#8217;ve got too much source code lying around not to share it with everyone <img src='http://dragly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And for starters that&#8217;s a big plus for github. Keeping my projects stored in one place makes it a much better alternative than hosting alternatives for Subversion, like SourceForge and Google Code.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/03/24/moving-around-and-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

