You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-18Lines changed: 35 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,33 @@ Pow doesn't support rack.hijack and thus not websockets and thus not actioncable
19
19
* Run `puma-dev -install` to configure puma-dev to run in the background on ports 80 and 443 with the domain `.dev`.
20
20
* If you're currently using pow, puma-dev taking control of `.dev` will break it. If you want to just try out puma-dev and leave pow working, pass `-d pdev` on `-install` to use `.pdev` instead.
21
21
22
+
### Install on Linux
23
+
24
+
* Puma-dev supports linux but requires additional installation to make all the features work.
25
+
* You can either build from source or download a binary from https://github.com/puma/puma-dev/releases
26
+
27
+
#### .dev domain
28
+
29
+
Install the dev-tld-resolver (https://github.com/puma/dev-tld-resolver) to make domains resolve.
30
+
31
+
#### Port 80/443 binding
32
+
33
+
There are 2 options to allow puma-dev to listen on port 80 and 443.
You don't need to bind to port 80/443 to use puma-dev but obviously it makes using the `.dev` domain much nicer.
39
+
40
+
There is a shortcut for binding to 80/443 by passing `-sysbind` which overrides `-http-port` and `-https-port`.
41
+
22
42
### Options
23
43
24
44
Run: `puma-dev -h`
25
45
26
46
You have the ability to configure most of the values that you'll use day-to-day.
27
47
28
-
### Setup
48
+
### Setup (OS X only)
29
49
30
50
Run: `sudo puma-dev -setup`.
31
51
@@ -37,7 +57,7 @@ Puma-dev v0.3 and later use launchd to access privileged ports, so if you instal
37
57
38
58
Run: `sudo puma-dev -cleanup`
39
59
40
-
### Background Install/Upgrading for port 80 access
60
+
### Background Install/Upgrading for port 80 access (OS X only)
41
61
42
62
If you want puma-dev to run in the background while you're logged in and on a common port, then you'll need to install it.
43
63
@@ -59,7 +79,7 @@ Running `puma-dev` in this way will require you to use the listed http port, whi
59
79
60
80
By default, puma-dev uses the domain `.dev` to manage your apps. If you want to have puma-dev look for apps in `~/.pow`, just run `puma-dev -pow`.
61
81
62
-
###Configuration
82
+
## Configuration
63
83
64
84
Puma-dev supports loading environment variables before puma starts. It checks for the following files in this order:
65
85
@@ -73,13 +93,13 @@ Additionally, puma-dev uses a few environment variables to control how puma is s
73
93
*`THREADS`: How many threads puma should use concurrently. Defaults to 5.
74
94
*`WORKERS`: How many worker processes to start. Defaults to 0, meaning only use threads.
75
95
76
-
###Purging
96
+
## Purging
77
97
78
98
If you would like to have puma-dev stop all the apps (for resource issues or because an app isn't restarting properly), you can send `puma-dev` the signal `USR1`. The easiest way to do that is:
79
99
80
100
`pkill -USR1 puma-dev`
81
101
82
-
### Uninstall
102
+
### Uninstall (OS X only)
83
103
84
104
Run: `puma-dev -uninstall`
85
105
@@ -119,25 +139,22 @@ In the case of rails, you need to configure rails to allow all websockets or web
119
139
120
140
Or you can add something like `config.action_cable.allowed_request_origins = /(\.dev$)|^localhost$/` to allow anything under `.dev` as well as `localhost`.
121
141
122
-
## Linux
123
-
124
-
Puma-dev supports linux but requires additional installation to make all the features work.
125
-
126
-
### .dev domain
127
-
128
-
Install the dev-tld-resolver (https://github.com/puma/dev-tld-resolver) to make domains resolve.
142
+
### xip.io
129
143
130
-
### Port 80/443 binding
144
+
Puma-dev supports `xip.io` domains. It will detect them and strip them away, so that your `test` app can be accessed as `test.A.B.C.D.xip.io`.
131
145
132
-
There are 2 options to allow puma-dev to listen on port 80 and 443.
Like pow, puma-dev support serving static files. If an app has a `public` directory, then any urls that match files within that directory are served. The static files have priority over the app.
136
149
137
-
You don't need to bind to port 80/443 to use puma-dev but obviously it makes using the `.dev` domain much nicer.
150
+
### Status API
138
151
139
-
There is a shortcut for binding to 80/443 by passing `-sysbind` which overrides `-http-port` and `-https-port`.
152
+
Puma-dev is starting to evolve a status API that can be used to introspect it and the apps. To access it, send a request with the `Host: puma-dev` and the path `/status`, for example: `curl -H "Host: puma-dev" localhost/status`.
0 commit comments