Permalink
Browse files

Added rsync deployment, removed generated files from the repo, fixed …

…issues on generated url size
  • Loading branch information...
1 parent 3a2e967 commit 01591896a33d75eb67e5e2a5ac89c8211524236e @imathis committed Mar 14, 2013
Showing with 17 additions and 4,985 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 Guardfile
  3. +10 −0 Rakefile
  4. +1 −1 assets/javascripts/modules/site.coffee
  5. +1 −0 assets/stylesheets/site.scss
  6. +2 −1 index.html
  7. +0 −719 javascripts/app.js
  8. +0 −4,262 javascripts/hslpicker.js
  9. +0 −1 stylesheets/site.css
View
@@ -1,2 +1,4 @@
.DS_Store
.sass-cache
+_site
+stylesheets
View
@@ -11,7 +11,7 @@ end
guard :shell do
watch /^assets\/javascripts\/.+\.(js|coffee)/ do |change|
file = "javascripts/hslpicker.js"
- env = 'dev'
+ env = 'production'
lib = ['underscore.js', 'backbone.js', 'dragdealer.js'].collect {|item| Dir.glob("assets/javascripts/lib/#{item}") }.flatten.uniq
modules = Dir.glob('assets/javascripts/modules/*.*')
View
@@ -0,0 +1,10 @@
+desc "Deploy via Rsync"
+task :deploy do
+ cp_r 'javascripts/.', '_site/javascripts'
+ cp_r 'fonts/.', '_site/fonts'
+ cp_r 'stylesheets/.', '_site/stylesheets'
+ cp_r 'index.html', '_site/index.html'
+ puts "## Deploying website via Rsync"
+ system("rsync -avze ssh _site/ imathis@hslpicker.com:~/hslpicker.com/")
+end
+
@@ -68,7 +68,7 @@ site = Backbone.View.extend
input=$('.url')
url = "#{host}/#{hash}"
- width = url.length*7.45
+ width = url.length*7.8
input.css width: width
input.val(url)
@@ -220,3 +220,4 @@ footer {
color: #999;
}
}
+
View
@@ -46,7 +46,7 @@
HSL Color Picker adores modern browsers.
&copy; 2012 <a href="http://brandonmathis.com/">Brandon Mathis</a>
<a class='show-more' href="#">What's HSL?</a>
- <a href="http://github.com/imathis/hsl-color-picker/">Source</a>
+ <a href="http://github.com/imathis/hsl-picker/">Source</a>
</p>
<p>
<input class="url" spellcheck="false" readonly="true">
@@ -74,3 +74,4 @@
});
</script>
</html>
+
Oops, something went wrong.

0 comments on commit 0159189

Please sign in to comment.