<?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>All Aboard Rails &#187; hosting</title>
	<atom:link href="http://rails.webintellix.com/tag/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://rails.webintellix.com</link>
	<description>Ruby on Rails fun on Windows</description>
	<lastBuildDate>Tue, 29 Jun 2010 04:14:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to: Deploy application from Git repo to Heroku</title>
		<link>http://rails.webintellix.com/2009/07/25/how-to-deploy-application-from-git-repo-to-heroku/</link>
		<comments>http://rails.webintellix.com/2009/07/25/how-to-deploy-application-from-git-repo-to-heroku/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 22:22:00 +0000</pubDate>
		<dc:creator>Rupak Ganguly</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://rails.webintellix.com/index.php/2009/07/how-to-deploy-application-from-git-repo-to-heroku/</guid>
		<description><![CDATA[Well, I am sure you have looked for a less expensive (maybe free!) Rails hosting solution. I use a solution that lets me test drive or deploy an idea I want to show to a client or a friend quickly. Anyway, the point of this article is a quick and possibly free deployment solution that [...]]]></description>
			<content:encoded><![CDATA[<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F&amp;title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F&amp;title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F&amp;title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F&amp;headline=How+to%3A+Deploy+application+from+Git+repo+to+Heroku" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;u=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F&amp;title=How+to%3A+Deploy+application+from+Git+repo+to+Heroku&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Frails.webintellix.com%2F2009%2F07%2F25%2Fhow-to-deploy-application-from-git-repo-to-heroku%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><p>Well, I am sure you have looked for a less expensive (maybe free!) Rails hosting solution. I use a solution that lets me test drive or deploy an idea I want to show to a client or a friend quickly. Anyway, the point of this article is a quick and possibly free deployment solution that does the job. It focuses on getting the application deployed rather than worry about the setup, database migrations and configuration involved at the hosting provider. I found <a href="http://www.heroku.com" target="_blank">Heroku</a> to fit the bill perfectly. So, here is a run down on how you could try it as well.</p>
<p><span id="more-106"></span></p>
<h4>Beyond the basic Heroku deployment scenario</h4>
<p>I am assuming you can get up and running on the basics of Heroku by following the quick start instructions <a href="http://docs.heroku.com/quickstart" target="_blank">here</a>, but I will be talking about a scenario which has a little twist. My scenario is that I have an existing app. on a remote repo (<a href="http://www.unfuddle.com" target="_blank">Unfuddle</a> in my case or <a href="http://www.github.com" target="_blank">GitHub</a> in your case or any other for that matter). I have my local machine setup with a clone from my remote repo. I have it all worked out and I make changes and push them to my remote repo.</p>
<p>Goal: I want to deploy my application “QParty” to Heroku. It is just a fun little  Follow my step-by-step directions to the goal.</p>
<h5>1. Sync local repo to remote repo</h5>
<p>Check to see if the local git repo is synced with remote master code repo at Unfuddle/GitHub.</p>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ git push unfuddle master
Counting objects: 19, done.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 1.21 KiB, done.
Total 14 (delta 8), reused 0 (delta 0)
To git@xxx.unfuddle.com:xxx/qparty.git
   593aae6..64d9cfb  master -&gt; master</pre>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<h5>2. Install Heroku</h5>
<p>The following command will install the Heroku gem if you don’t have it already.</p>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ gem install heroku
Successfully installed rest-client-1.0.3
Successfully installed configuration-0.0.5
Successfully installed launchy-0.3.3
Successfully installed json-1.1.7-x86-mswin32
Successfully installed heroku-1.0
5 gems installed
Installing ri documentation <span class="kwrd">for</span> rest-client-1.0.3...
Installing ri documentation <span class="kwrd">for</span> launchy-0.3.3...
Installing ri documentation <span class="kwrd">for</span> json-1.1.7-x86-mswin32...
Installing ri documentation <span class="kwrd">for</span> heroku-1.0...
Installing RDoc documentation <span class="kwrd">for</span> rest-client-1.0.3...
Installing RDoc documentation <span class="kwrd">for</span> launchy-0.3.3...
Installing RDoc documentation <span class="kwrd">for</span> json-1.1.7-x86-mswin32...
Installing RDoc documentation <span class="kwrd">for</span> heroku-1.0...</pre>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<h5>3. Create a fresh new app at Heroku</h5>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ heroku create qparty
Enter your Heroku credentials.
Email: xxx@yyy.com
Password:
Uploading ssh <span class="kwrd">public</span> key C:\Users\Rupak/.ssh/id_rsa.pub
Created http:<span class="rem">//qparty.heroku.com/ | git@heroku.com:qparty.git </span>
Git remote heroku added</pre>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<h5>4. Push your code to Heroku and also deploy it</h5>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ git push heroku master
Counting objects: 13, done.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.89 KiB, done.
Total 7 (delta 6), reused 0 (delta 0)

-----&gt; Heroku receiving push
-----&gt; Rails app detected
       Compiled slug size <span class="kwrd">is</span> 252K

-----&gt; Launching..... done http:<span class="rem">//qparty.heroku.com deployed to Heroku </span>
   64d9cfb..bfed5c3  master -&gt; master</pre>
<h5>5. Check to see if your app is deployed at Heroku</h5>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ heroku list
favlist
qparty</pre>
<p>Yeah, it is listed. Now, test the app at <a href="http://qparty.heroku.com">http://qparty.heroku.com</a> in your favorite browser.</p>
<p><a href="http://webintellix.com/blog_rails/wp-content/uploads/2009/07/qparty.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="qparty" src="http://webintellix.com/blog_rails/wp-content/uploads/2009/07/qparty-thumb.png" border="0" alt="qparty" width="562" height="242" /></a></p>
<p>By the way, if you like to see some more information about your app at Heroku, do the following:</p>
<pre class="csharpcode">Rupak@RG4WIX /c/MyStuff/SvnCode/GitRepo/qparty
$ heroku info
=== qparty
Web URL:        http:<span class="rem">//qparty.heroku.com/ </span>
Git Repo:       git@heroku.com:qparty.git
Repo size:      484k
Slug size:      248k
Data size:      0K <span class="kwrd">in</span> 0 table
Owner:          xxx@yyy.com</pre>
<p>That&#8217;s it. You have connected to your git repo, uploaded code to Heroku and deployed your application to Heroku in a snap.</p>
]]></content:encoded>
			<wfw:commentRss>http://rails.webintellix.com/2009/07/25/how-to-deploy-application-from-git-repo-to-heroku/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
