Commit c39428e
authored
Replace 'rackup' with 'rack' in server file
Running this example with Ruby 3.4.5 the following does not work:
```ruby
Rackup::Handler.get("puma").run(rack_app, Port: 9393, Host: "0.0.0.0")
```
It returns the following error message:
`uninitialized constant Rackup::Handler (NameError)`
To resolve this I just required Rack and changed Rackup to Rack. Then things worked fine.1 parent 400a56e commit c39428e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
0 commit comments