<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-us"><title type="text">Updrift</title>


<link rel="alternate" type="text/html" href="http://www.updrift.com/" />
<id>tag:www.updrift.com,2005:901bf7d4ecafa24faca75b7eb40fddf8</id>
<generator uri="http://textpattern.com/" version="4.0.6">Textpattern</generator>
<updated>2009-06-24T16:18:57Z</updated>
<author>
		<name>Wade Winningham</name>
		<email>wade@updrift.com</email>
		<uri>http://www.updrift.com/</uri>
</author>

<link rel="self" href="http://www.updrift.com/rss" type="application/atom+xml" /><feedburner:emailServiceId>Updrift</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><entry>
		<author>
			<name>Wade Winningham</name>
		</author>
		<published>2009-05-19T03:01:10Z</published>
		<updated>2009-05-19T03:13:57Z</updated>
		<title type="html">ThinkingSphinx Capistrano tasks</title>
		<link rel="alternate" type="text/html" href="http://www.updrift.com/article/thinkingsphinx-capistrano-tasks" />
		<id>tag:www.updrift.com,2009-05-19:901bf7d4ecafa24faca75b7eb40fddf8/9c5b8b30776e15741f04c789db330e3c</id>
		<category term="Ruby-On-Rails" />
		
		<summary type="html">
<![CDATA[<p>Pat Allan recently released some helpful capistrano tasks you can use to make it easier to deploy your rails apps which use <a href="http://www.sphinxsearch.com">Sphinx</a> and <a href="http://ts.freelancing-gods.com">ThinkingSphinx</a>. These simplify the steps from <a href="http://www.updrift.com/article/deploying-a-rails-app-with-thinking-sphinx">my previous post about this</a> so I&#8217;ve also included an update to my deployment setup.</p>

	<h3>ThinkingSphinx Capistrano Tasks</h3>

	<p>Each of these currently gets run in your <strong>production</strong> environment except for the <code>thinking_sphinx:install</code> tasks. I&#8217;m sure a patch would be welcome to make this work across any environment.</p>

	<table>
		<tr>
			<td><code>cap thinking_sphinx:configure</code></td>
			<td>Generate the Sphinx configuration file.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:index</code></td>
			<td>Index data.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:install:sphinx</code></td>
			<td>Install Sphinx by source. This currently grabs the current stable version of Sphinx and compiles it.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:install:ts</code></td>
			<td>Install Thinking Sphinx as a gem from GitHub. If you have the plugin installed, there&#8217;s no need to do this.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:rebuild</code></td>
			<td>Stop, re-index and then start the Sphinx daemon.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:restart</code></td>
			<td>Stop and then start the Sphinx daemon.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:shared_sphinx_folder</code></td>
			<td>Add the shared folder for sphinx for Sphinx files for the production environment. More on this below.</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:start</code></td>
			<td>Start the Sphinx daemon</td>
		</tr>
		<tr>
			<td><code>cap thinking_sphinx:stop</code></td>
			<td>Stop the Sphinx daemon</td>
		</tr>
	</table>

	<h3>Adding the new Capistrano tasks to your Rails app</h3>

	<p>If you&#8217;ve got ThinkingSphinx installed as a plugin, add this to the top of your <code>config/deploy.rb</code> file:</p>

	<p>If you&#8217;re using the <strong>Plugin</strong>:<pre>load &#8216;vendor/plugins/thinking-sphinx/lib/thinking_sphinx/deploy/capistrano&#8217;</pre></p>

	<p>If you&#8217;re using the <strong>Gem</strong>: <pre>require &#39;thinking_sphinx/deploy/capistrano</pre></p>

	<p>Also, at the bottom of the file, add the following line:</p>

<pre>
after &quot;deploy:setup&quot;, &quot;thinking_sphinx:shared_sphinx_folder&quot;
</pre>

	<h3>Using &#8216;cap thinking_sphinx:shared_sphinx_folder&#8217;</h3>

	<p>I have not personally run across any issues using symlinks, but some people have. Plus, using a symlink can make you go through extra steps during deployment. Now, there&#8217;s a new setting you can add to your <code>config/sphinx.yml</code> file to specify the full path to your Sphinx database files like so:</p>

<pre>
production:
  searchd_file_path: &quot;/path/to/your/app/db/sphinx/production/&quot;
</pre>

	<p>This path will get automatically created if it does not exist.</p>

	<h3>Updated Method of Deploying a Rails app with ThinkingSphinx</h3>

	<p>Having a constant path to the Sphinx indexes means you really don&#8217;t have to do anything special on deployment assuming it&#8217;s already running. If your <code>define_index</code> block in any models are changing frequently, you <strong>can</strong> add a few lines so you don&#8217;t forget about re-indexing. Check out my revised deploy.rb file for details.</p>

	<h3>Updated deploy.rb file</h3>

	<p>My updated sample deploy.rb is <a href="http://pastie.org/482368">pastied</a>.</p>]]>
</summary>
</entry>
<entry>
		<author>
			<name>Wade Winningham</name>
		</author>
		<published>2008-05-07T17:10:42Z</published>
		<updated>2009-05-19T03:15:45Z</updated>
		<title type="html">Deploying a Rails app with Thinking Sphinx</title>
		<link rel="alternate" type="text/html" href="http://www.updrift.com/article/deploying-a-rails-app-with-thinking-sphinx" />
		<id>tag:www.updrift.com,2008-05-07:901bf7d4ecafa24faca75b7eb40fddf8/db37bfc8fd58880c4fb58b228355b6a0</id>
		<category term="Ruby-On-Rails" />
		
		<summary type="html">
<![CDATA[<p>Now that I&#8217;m using Thinking Sphinx I eventually had to deploy it. Since I didn&#8217;t find much info about deploying it using Capistrano here&#8217;s what I did to get deployments running smoothly.</p>

	<p><strong><span class="caps">NOTE</span>:</strong> Please see <a href="http://www.updrift.com/article/thinkingsphinx-capistrano-tasks">this updated post</a> for more recent info on deploying your apps with Thinking Sphinx.</p>]]>
</summary>
</entry>
<entry>
		<author>
			<name>Wade Winningham</name>
		</author>
		<published>2008-02-01T14:14:28Z</published>
		<updated>2008-02-02T02:25:27Z</updated>
		<title type="html">How to get a good designer to do something within your budget</title>
		<link rel="alternate" type="text/html" href="http://www.updrift.com/article/how-to-get-a-good-designer-to-do-something-within-your-budget" />
		<id>tag:www.updrift.com,2008-02-01:901bf7d4ecafa24faca75b7eb40fddf8/3e8f278bd55c7596bd427a54e452b3d1</id>
		<category term="Miscellaneous" />
		
		<summary type="html">
<![CDATA[<p>I overheard someone talking about not being able to find a designer to help them with a web project for less than a certain hourly rate. It&#8217;s not the hourly rate that matters, it&#8217;s the overall cost.</p>

	<p>Here are some tips for getting a good designer to help you out regardless of cost:</p>

	<ul>
		<li>It&#8217;s who you know. You need to get out and meet with designers. In the Dallas area, <a href="http://www.refreshdallas.org">Refresh Dallas</a> is a good venue for this. Sometimes designers need development work, too, so maybe you can sync up on something. Especially if you&#8217;re around a big city, there will be a similar group.</li>
		<li>Better yet, <strong>work</strong> with good designers. If you do good work, they&#8217;ll remember and want to work with you more and give you some slack on price when you need it. They&#8217;ll recommend you to others, too.</li>
		<li>Tell them what you&#8217;ve got to spend up front. They&#8217;ll tell you what they can do. It&#8217;s possible all you need is a one page template and if you ask them to simply <em>design a site</em>, that typically entails much more effort. Some of the better designers I know ask for a budget outright so they know what they can offer within the constraints.</li>
		<li>If they can&#8217;t be of service, ask if they know anyone who could. Designers often know other designers.</li>
	</ul>]]>
</summary>
</entry>
<entry>
		<author>
			<name>Wade Winningham</name>
		</author>
		<published>2007-12-04T16:23:09Z</published>
		<updated>2007-12-04T16:25:39Z</updated>
		<title type="html">Me on Tumblr</title>
		<link rel="alternate" type="text/html" href="http://www.updrift.com/article/me-on-tumblr" />
		<id>tag:www.updrift.com,2007-12-04:901bf7d4ecafa24faca75b7eb40fddf8/eda6a2d0752d9ac5481595d39c81c6f6</id>
		<category term="Miscellaneous" />
		
		<summary type="html">
<![CDATA[<p>I&#8217;ve decided to setup a <a href="http://www.tumblr.com">Tumblr</a> page where I currently plan to post frequent, short things both professional and personal. Visit <a href="http://wadewinningham.tumblr.com">http://wadewinningham.tumblr.com</a>.</p>]]>
</summary>
</entry>
<entry>
		<author>
			<name>Wade Winningham</name>
		</author>
		<published>2007-12-04T16:17:15Z</published>
		<updated>2007-12-04T16:22:43Z</updated>
		<title type="html">Stay back, IE7!</title>
		<link rel="alternate" type="text/html" href="http://www.updrift.com/article/stay-back-ie7" />
		<id>tag:www.updrift.com,2007-12-04:901bf7d4ecafa24faca75b7eb40fddf8/60ea3e9afe3eb5eb7e9f190b82cffbf4</id>
		<category term="Miscellaneous" />
		
		<summary type="html">
<![CDATA[<p>Inevitably, today on my Windows XP notebook, the automatic update finally told me that it wanted to install IE7. Since I still need IE6 to test with and have IE7 working quite nicely on my MacBookPro in Parallels, Iâ€™m not going there.</p>]]>
</summary>
</entry></feed>
