-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
83 lines (57 loc) · 1.91 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
task :bench2 do
system "wrk -t 2 http://127.0.0.1:8000/"
end
task :bench do
system "ab -r -n 5000 -c 10 http://127.0.0.1:8000/"
end
task :thin, [:framework] do |t, args|
system "thin start -p 8000 -R #{args.framework}.ru"
end
task :puma, [:framework] do |t, args|
system "puma -e production -t 16:16 -p 8000 #{args.framework}.ru"
end
task :unicorn, [:framework] do |t, args|
system "unicorn -E production -p 8000 #{args.framework}.ru"
end
task :passenger, [:framework] do |t, args|
system "passenger start -p 8000 -e production -R #{args.framework}.ru"
end
task :rainbows, [:framework] do |t, args|
system "rainbows -E production -p 8000 #{args.framework}.ru"
end
task :rack, [:server, :framework] do |t, args|
system "rackup -E production -s #{args.server} -p 8000 #{args.framework}.ru"
end
task :reel do
system "ruby reel.rb"
end
task :goliath, [:server] do |t, args|
system "bundle exec rackup -E production -s #{args.server} -p 8000 goliath.rb"
#system "ruby goliath.rb -p 8000"
end
task :warmup do
system "wrk -t 2 -d60s http://127.0.0.1:8000/"
end
task :j_fishwife, [:framework] do |t, args|
system "fishwife -E production -p 8000 #{args.framework}.ru"
end
task :j_jubilee, [:framework] do |t, args|
system "jubilee -e production -p 8000 #{args.framework}.ru"
end
task :j_mizuno, [:framework] do |t, args|
system "mizuno -E production -p 8000 #{args.framework}.ru"
end
task :j_torquebox, [:framework] do |t, args|
# torquebox 3 doesn't give a clear way to deploy a specific rackup file, so
# this is a quick and dirty hack
system "rm config.ru"
system "ln -s #{args.framework}.ru config.ru"
system "torquebox deploy"
system "torquebox start -p 8000"
end
task :j_torqbox, [:framework] do |t, args|
system "torqbox -E production -p 8000 -q #{args.framework}.ru"
end
task :j_trinidad, [:framework] do |t, args|
system "trinidad -e production -p 8000 -r #{args.framework}.ru"
end