-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathpuma-dev.rb
More file actions
47 lines (43 loc) · 1.39 KB
/
Copy pathpuma-dev.rb
File metadata and controls
47 lines (43 loc) · 1.39 KB
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
# generates cheatsheet via https://github.com/Kapeli/cheatset
# `$ cheatset generate puma-dev.rb`
cheatsheet do
title 'puma-dev'
docset_file_name 'puma-dev'
keyword 'puma-dev'
source_url 'http://cheat.kapeli.com'
introduction "[puma-dev](https://github.com/puma/puma-dev) serves rack apps in development, using puma. Similar to pow.cx. [Why not use pow?](https://github.com/puma/puma-dev#why-not-just-use-pow)"
category do
id 'Setup'
entry do
command 'Installation/Setup'
notes 'See the website for installation instructions: https://github.com/puma/puma-dev'
end
entry do
command 'puma-dev link [-n name] [dir]'
name '"Register" your app with puma-dev'
notes 'Creates a symlink to your app directory in your puma-dev directory (~/.puma-dev by default).'
end
entry do
command 'pkill -USR1 puma-dev'
name 'Purge: stop all the apps'
notes "For resource issues or because an app isn't restarting properly"
end
entry do
command 'puma-dev -uninstall'
name 'Uninstall (OSX only)'
end
end
category do
id 'Debug'
entry do
command 'curl -H "Host: puma-dev" localhost/status'
name 'Status'
notes "Returns status of puma-dev."
end
entry do
command 'curl -H "Host: puma-dev" localhost/events'
name 'Event log'
notes "Returns a log of puma-dev events."
end
end
end