Install And Use Wordless With Rbenv And Nginx

Posted By Weston Ganger

<p>I found this great wordpress plugin that helps make your wordpress theming more ruby like</p>
<p>It adds functionality for HAML, SASS, Compass, CoffeeScript, YUI Compressor, complete with the unbeatable rails structure and asset precompilation</p>
<p> </p>
<p><strong>So first we will install wordless as a global gem (this way you can use the command line):</strong></p>

# Send js and css requests to Wordless
location ~* \.(js|css)$ {
  try_files $uri /index.php?$args;
}

# Directives to send expires headers and turn off 404 error logging.
location ~* \.(png|jpg|jpeg|gif|ico)$ {
  expires 24h;
  log_not_found off;
}

<p> </p>
<p>If your interested in making it function even more like rails you can install the wordmove gem which is like capistrano for wordless but I will cover this in another blog post.</p>

Article Topic:Software Development - Linux

Date:April 28, 2014