<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Common Rails command shortcuts</title>
	<atom:link href="http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/</link>
	<description>Internet Awesome</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:24:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Delicious Bookmarks for September 16th from 04:04 to 04:54 &#171; Lâmôlabs</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-2075</link>
		<dc:creator>Delicious Bookmarks for September 16th from 04:04 to 04:54 &#171; Lâmôlabs</dc:creator>
		<pubDate>Thu, 16 Sep 2010 09:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-2075</guid>
		<description>[...] Common Rails command shortcuts &#171; Envy Labs &#8211; September 16th  %(postalicious-tags)( tags: bash rails alias terminal ruby rails3 rails2 tips tricks cli commandline )%     September 16th, 2010, @ 5:00 am &#124;  Tags: links &#124;  Category: delicious links &#124;  Comments are closed &#124;  Trackback this Post &#124;  0 views [...]</description>
		<content:encoded><![CDATA[<p>[...] Common Rails command shortcuts &laquo; Envy Labs &#8211; September 16th  %(postalicious-tags)( tags: bash rails alias terminal ruby rails3 rails2 tips tricks cli commandline )%     September 16th, 2010, @ 5:00 am |  Tags: links |  Category: delicious links |  Comments are closed |  Trackback this Post |  0 views [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1938</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 31 Jul 2010 21:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1938</guid>
		<description>This could probably also include a check to run &quot;bundle exec whatever&quot; if bundler is being used.</description>
		<content:encoded><![CDATA[<p>This could probably also include a check to run &#8220;bundle exec whatever&#8221; if bundler is being used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 统一设置rails2和rails3的常用命令快捷键 - RubyEE.org - about Ruby,Rails,Sinatra,Mac OS &#38; iPhone app</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1837</link>
		<dc:creator>统一设置rails2和rails3的常用命令快捷键 - RubyEE.org - about Ruby,Rails,Sinatra,Mac OS &#38; iPhone app</dc:creator>
		<pubDate>Tue, 20 Jul 2010 08:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1837</guid>
		<description>[...] 译自：http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/   归类于：Rails 3&#160;&#160; 标签： [...]</description>
		<content:encoded><![CDATA[<p>[...] 译自：http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/   归类于：Rails 3&nbsp;&nbsp; 标签： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 统一设置rails2和rails3命令快捷键 &#187; Eric Lo</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1826</link>
		<dc:creator>统一设置rails2和rails3命令快捷键 &#187; Eric Lo</dc:creator>
		<pubDate>Fri, 16 Jul 2010 17:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1826</guid>
		<description>[...] 译自：http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 译自：http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Ranaudo</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1824</link>
		<dc:creator>John Ranaudo</dc:creator>
		<pubDate>Fri, 16 Jul 2010 14:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1824</guid>
		<description>Thanks for taking the time to share your tips!</description>
		<content:encoded><![CDATA[<p>Thanks for taking the time to share your tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gregf</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1821</link>
		<dc:creator>gregf</dc:creator>
		<pubDate>Fri, 16 Jul 2010 03:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1821</guid>
		<description>I been using nginx under development for a while now, first mongrel, then passenger. I ended up creating a little function so I could easily start it and stop easily.

# Start nginx and tail the logfile                                                                                                                                     
# catch ^C and kill nginx
function ss {
    TRAPINT() {
        print &quot;Caught Control C, shutting down nginx&quot;
        sudo /etc/init.d/nginx stop
    }   
    sudo /etc/init.d/nginx start
    tail -f log/development.log

}

Then I would just type ss under my rails application, it would launch nginx, and tail the log file for me. When I was done I could just hit ^C and it would automatically shut down nginx. I think passenger light is going to do away with needing this but may come in handy to someone.</description>
		<content:encoded><![CDATA[<p>I been using nginx under development for a while now, first mongrel, then passenger. I ended up creating a little function so I could easily start it and stop easily.</p>
<p># Start nginx and tail the logfile<br />
# catch ^C and kill nginx<br />
function ss {<br />
    TRAPINT() {<br />
        print &#8220;Caught Control C, shutting down nginx&#8221;<br />
        sudo /etc/init.d/nginx stop<br />
    }<br />
    sudo /etc/init.d/nginx start<br />
    tail -f log/development.log</p>
<p>}</p>
<p>Then I would just type ss under my rails application, it would launch nginx, and tail the log file for me. When I was done I could just hit ^C and it would automatically shut down nginx. I think passenger light is going to do away with needing this but may come in handy to someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Swanner</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1819</link>
		<dc:creator>Jacob Swanner</dc:creator>
		<pubDate>Thu, 15 Jul 2010 20:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1819</guid>
		<description>Hey Xavier, thanks for the improvements.</description>
		<content:encoded><![CDATA[<p>Hey Xavier, thanks for the improvements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xavier Noria</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1815</link>
		<dc:creator>Xavier Noria</dc:creator>
		<pubDate>Thu, 15 Jul 2010 19:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1815</guid>
		<description>A little refactor:

function rails_command {
    local cmd=$1
    shift
    if [ -e script/rails ]; then
      script/rails $cmd &quot;$@&quot;
    else
      script/$cmd &quot;$@&quot;
    fi
}

function ss {
    rails_command &quot;server&quot; &quot;$@&quot;
}

function sc {
    rails_command &quot;console&quot; &quot;$@&quot;
}

function sg {
    rails_command &quot;generate&quot; &quot;$@&quot;
}

function sr {
    rails_command &quot;runner&quot; &quot;$@&quot;
}</description>
		<content:encoded><![CDATA[<p>A little refactor:</p>
<p>function rails_command {<br />
    local cmd=$1<br />
    shift<br />
    if [ -e script/rails ]; then<br />
      script/rails $cmd &#8220;$@&#8221;<br />
    else<br />
      script/$cmd &#8220;$@&#8221;<br />
    fi<br />
}</p>
<p>function ss {<br />
    rails_command &#8220;server&#8221; &#8220;$@&#8221;<br />
}</p>
<p>function sc {<br />
    rails_command &#8220;console&#8221; &#8220;$@&#8221;<br />
}</p>
<p>function sg {<br />
    rails_command &#8220;generate&#8221; &#8220;$@&#8221;<br />
}</p>
<p>function sr {<br />
    rails_command &#8220;runner&#8221; &#8220;$@&#8221;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xavier Noria</title>
		<link>http://blog.envylabs.com/2010/07/common-rails-command-shortcuts/#comment-1814</link>
		<dc:creator>Xavier Noria</dc:creator>
		<pubDate>Thu, 15 Jul 2010 19:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.envylabs.com/?p=733#comment-1814</guid>
		<description>Good trick!

Don&#039;t know in the examples above, but at least for runner $@ should be quoted, like &quot;$@&quot; you know.</description>
		<content:encoded><![CDATA[<p>Good trick!</p>
<p>Don&#8217;t know in the examples above, but at least for runner $@ should be quoted, like &#8220;$@&#8221; you know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

