Permalink
Browse files

fetch latest code as part of deployment process

  • Loading branch information...
mhayes committed Aug 2, 2012
1 parent 326f01a commit bc4f7b475aca3789f63d1b2a77b23f22854678de
Showing with 8 additions and 0 deletions.
  1. +2 −0 MANIFEST
  2. +6 −0 Rakefile
View
@@ -1,2 +1,4 @@
+http://staging.familygivingtree.org/about.php
http://staging.familygivingtree.org/index.php
+http://staging.familygivingtree.org/lead-a-drive.php
http://staging.familygivingtree.org/sponsor.php
View
@@ -10,11 +10,16 @@ task :deploy => [
]
task :test => [
+ :fetch_recent_code,
:replace_tabs_with_2_spaces,
:check_for_non_sass_urls,
:create_site_manifest
]
+task :fetch_recent_code do
+ `git pull origin master`
+end
+
task :replace_tabs_with_2_spaces do
js_files = Dir.glob("#{root}/javascripts/**/*.js")
scss_files = Dir.glob("#{root}/sass/**/*.scss")
@@ -63,6 +68,7 @@ task :check_for_broken_links do
end
task :export_to_site do
+ puts "[EXPORT_TO_SITE TIMESTAMP] #{Time.now.to_s}"
ftp = BetterFTP.open(deploy["host"], deploy["username"], deploy["password"])
files = `git ls-files`.split("\n").map {|f| "#{root}/#{f}"}
`compass compile`

0 comments on commit bc4f7b4

Please sign in to comment.