title: Using HTML5 Boilerplate Build script with a PHP framework
body: <p>I’m a big fan of the popular HTML5 Boilerplate. I’d love to use the build script to minifiy etc, but I can’t figure out how to get everything working together. To add further fun, I deploy using Git – no FTP.</p>
  
  <p>Paul Irish’s video on using the build script is great, and at the end he shows a way to deploy on a server, then use .htaccess to reroot traffic from .com/ to .com/published/site/ – however that doesn’t really work when you’ve got a webapp and you’re using views. It’s also a really bad habit to put any code in public_html.</p>
  
  <p>So here’s the structure I’m after of the deployed and built site:</p>
  
  <pre><code>- webapp
     - app
        - classes
            - welcome.php
        - views
            - template.php
     - framework
  - public_html
     - index.php
     - css
     - js
     - img
  </code></pre>
  
  <p>But it needs to:</p>
  
  <ul>
  <li>Be still able to develop locally, without having to build every time!</li>
  <li>Be Gitable – deploy to server, then build</li>
  <li>Minify and read views from webapp</li>
  </ul>
  
  <p>My first attempt ended up like this:</p>
  
  <pre><code>- webapp
     - app
        - classes
            - welcome.php
        - views
            - template.php
     - framework
  - public_html
     - index.php
     - css (minified)
     - js (minified)
     - img (minified)
  - dev_html
     - index.php
     - build
            - etc...
     - css
     - js
     - img
  </code></pre>
  
  <p>Then I published back up, but then completely forgot about the fact that the HTML file that needs reading is in the webapp, so then I get stuck.</p>
  
  <p>It’s a bit complicated so do ask if you don’t get it!</p>