<?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>Caffeine Lab &#187; cloud</title>
	<atom:link href="http://erwan.jp/tag/cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://erwan.jp</link>
	<description>Really tasty technologies</description>
	<lastBuildDate>Wed, 07 Jul 2010 10:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='erwan.jp' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Deploy a Play Application on Gandi Cloud</title>
		<link>http://erwan.jp/2010/02/23/deploy-a-play-application-on-gandi-cloud/</link>
		<comments>http://erwan.jp/2010/02/23/deploy-a-play-application-on-gandi-cloud/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:14:23 +0000</pubDate>
		<dc:creator>erwan</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[gandi]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://erwan.jp/?p=478</guid>
		<description><![CDATA[Gandi Cloud is a cloud hosting service, similar to Amazon&#8217;s EC2. Since you get full access to a Linux installation, deployment is similar to using a dedicated server. They have prepackaged solutions for various frameworks but not for Play. Fortunately deploying Play in general is pretty straight-forward. Note that, just like EC2, it&#8217;s not free [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="https://www.gandi.net/hebergement/">Gandi Cloud</a> is a cloud hosting service, similar to Amazon&#8217;s EC2. Since you get full access to a Linux installation, deployment is similar to using a dedicated server. They have prepackaged solutions for various frameworks but not for <a href="http://www.playframework.org">Play</a>. Fortunately deploying Play in general is pretty straight-forward.</p>
<p style="text-align: justify;">Note that, just like EC2, it&#8217;s not free hosting &#8211; you have to pay for it. But they have fairly reasonable prices.</p>
<h3>1. Create a server on Gandi</h3>
<p style="text-align: justify;">Make sure you choose a solution that gives you root access to the machine, &#8220;expert mode&#8221;. In the rest I&#8217;ll assume you choose Ubuntu, but any distribution would work.</p>
<h3>2. Install the Requirements</h3>
<p style="text-align: justify;">ssh to your server, and su to get root access. Now:</p>
<pre style="text-align: justify;">apt-get install openjdk-6-jre unzip</pre>
<p style="text-align: justify;">See how fast is the download, I bet they have a local proxy!</p>
<h3>3. Download Play</h3>
<p style="text-align: justify;">exit to get back to regular user mode, then:</p>
<p style="text-align: justify;">
<pre>wget http://download.playframework.org/releases/play-1.0.1.zip
unzip play-1.0.1</pre>
<h3>4. Run It!</h3>
<p style="text-align: justify;">Now you&#8217;re ready to run your app! Copy your app to your server by using <a href="http://en.wikipedia.org/wiki/Secure_copy">scp</a> for example, switch to to prod mode and you can run:</p>
<pre>play start yourAppFolder</pre>
<p style="text-align: justify;">That&#8217;s it, your application is running on your Gandi cloud server.</p>
<h3>5. HTTP Port, database</h3>
<p style="text-align: justify;">Since it&#8217;s a Cloud environment, you can easily create one server for each app. In this case, just configure Play to run on port 80 and you&#8217;re done. But if one Gandi server part is too big for one application and you can&#8217;t afford buying too many parts, you can run a web front-end to host several Play apps on the same server.</p>
<p style="text-align: justify;">See the Play documentation about <a href="http://www.playframework.org/documentation/1.0.1/production">running in production</a> for instructions on how to do it.</p>
<p style="text-align: justify;">For the database, you could configure one manually on the same server, but it&#8217;s much easier to create a separate MySQL server. You can create a server in &#8220;Gandi AI&#8221; mode, where the server is managed by Gandi and you don&#8217;t have direct access to it. That way, you can create a MySQL servers in a few clicks and point your Play app(s) to that separate server.</p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://erwan.jp/2010/02/23/deploy-a-play-application-on-gandi-cloud/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
