Skip to content
Browse files

built

  • Loading branch information...
1 parent d7a27d0 commit 5da720886f6943c5f6a5159131287ebbccc448d6 @adamgreenhall committed
Showing with 23 additions and 32 deletions.
  1. +6 −13 build/clean-urls.html
  2. +17 −19 build/index.html
View
19 build/clean-urls.html
@@ -11,17 +11,10 @@
<li>Development: in <code>config.rb</code> we un-comment the <code>request.path_info</code> statements. Middleman now serves up clean urls.</li>
<li>Production: in <code>config.ru</code> use <code>Rack::TryStatic</code></li>
</ol>
- <!-- %script{:type => "text/javascript", :src=>'/javascripts/d3.js'} -->
- <script type="text/javascript">
-if (typeof gaJsHost == 'undefined') {
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-}
-</script>
-<script type="text/javascript">
-try {
-var pageTracker = _gat._getTracker("UA-26495302-1");
-pageTracker._trackPageview();
-} catch(err) {}</script>
-</body>
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ _uacct = "UA-26495302-1";
+ urchinTracker();
+ </script>
+ </body>
</html>
View
36 build/index.html
@@ -13,25 +13,23 @@
<li><a href="http://coffeescript.com">coffeescript</a> and <a href="http://middlemanapp.com/guides/coffeescript-sprockets">sprockets</a></li>
<li><a href="http://bit.ly/r0IHMJ">livereload</a> (<code>middleman server --livereload</code>)</li>
</ul>
- <p>Then when you are ready, <a href="http://devcenter.heroku.com/articles/quickstart">put the site on heroku</a>:</p>
+ <p>A workflow might look like this:</p>
<ul>
- <li><code>heroku create</code> (the first time)</li>
- <li><code>middleman build</code></li>
- <li><code>git add build/*</code> (if you add new pages)</li>
- <li><code>git commit</code></li>
- <li><code>git push heroku master</code></li>
+ <li><code>show-it</code> and edit your <code>source/</code> files (this runs a live reload server)</li>
+ <li><code>test-it</code> when you are happy with your changes (this will build the static html and commit it to your heroku dev site)</li>
+ <li><code>publish-it</code> when you are happy with the way it looks on the dev site (this does a git merge and pushes the master to the main heroku site)</li>
</ul>
- <!-- %script{:type => "text/javascript", :src=>'/javascripts/d3.js'} -->
- <script type="text/javascript">
-if (typeof gaJsHost == 'undefined') {
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-}
-</script>
-<script type="text/javascript">
-try {
-var pageTracker = _gat._getTracker("UA-26495302-1");
-pageTracker._trackPageview();
-} catch(err) {}</script>
-</body>
+ <p>Setup happens by:</p>
+ <ul>
+ <li><code>git clone git@github.com:adamgreenhall/middleman-heroku-template.git</code></li>
+ <li><code>cd middleman-heroku-template</code></li>
+ <li><code>install-it</code></li>
+ <li>you can follow heroku&#8217;s <a href="http://devcenter.heroku.com/articles/custom-domains">instructions</a> for using custom domains</li>
+ </ul>
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ _uacct = "UA-26495302-1";
+ urchinTracker();
+ </script>
+ </body>
</html>

0 comments on commit 5da7208

Please sign in to comment.
Something went wrong with that request. Please try again.