Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (29 sloc) 0.777 kB
6935071 @soveran Change default rake task to :test.
soveran authored
1 task :default => :test
83fcb59 App skeleton.
Michel Martens & Damian Janowski authored
2
3 task :test do
4 require "cutest"
5
ca5b0a3 @pietern Namespace commands for web-based redis-cli
pietern authored
6 Cutest.run(Dir["test/**/*.rb"])
83fcb59 App skeleton.
Michel Martens & Damian Janowski authored
7 end
8
2b84a5f @soveran Add reference formatting.
soveran authored
9 task :formatting do
10 require "cutest"
11
12 Cutest.run(Dir["test/formatting.rb"])
13 end
14
4ea0092 @djanowski 'Vendor' redis-doc.
djanowski authored
15 task :update do
6415cd8 Upcase commands and keywords.
Michel Martens & Damian Janowski authored
16 sh "rm -rf redis-doc"
17 sh "git clone -q --depth 1 git://github.com/antirez/redis-doc.git"
18 sh "rm -rf redis-doc/.git"
83fcb59 App skeleton.
Michel Martens & Damian Janowski authored
19 end
71db65e @djanowski Force Heroku stack migration.
djanowski authored
20
9272a94 @djanowski Update deploy task.
djanowski authored
21 desc "Deploy"
aea83f6 @djanowski Don't vendor redis-doc.
djanowski authored
22 task :deploy do
9272a94 @djanowski Update deploy task.
djanowski authored
23 script = <<-EOS
24 cd ~/redis-doc
25 git pull
26 cd ~/redis-io
27 git pull
56b69cd @djanowski Manage gems with `dep` and check Sass before restarting Unicorn.
djanowski authored
28 rvm 1.9.2 gem install dep --no-ri --no-rdoc
29 (rvm 1.9.2 exec dep check || rvm 1.9.2 exec dep install)
30 rvm 1.9.2 exec compass compile -c config/sass.rb views/styles.sass
9272a94 @djanowski Update deploy task.
djanowski authored
31 kill -s INT $(cat log/redis-io.pid)
bd79388 @pietern RACK_ENV=production
pietern authored
32 rvm 1.9.2 exec unicorn -D -c unicorn.rb -E production
9272a94 @djanowski Update deploy task.
djanowski authored
33 EOS
34
35 sh "ssh redis-io '#{script.split("\n").map(&:strip).join(" && ")}'"
aea83f6 @djanowski Don't vendor redis-doc.
djanowski authored
36 end
Something went wrong with that request. Please try again.