File: README.md

package info (click to toggle)
trapperkeeper-webserver-jetty9-clojure 1.7.0-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,156 kB
  • sloc: xml: 531; java: 120; makefile: 24; sh: 10
file content (45 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (4)
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
Sample Trapperkeeper Multiserver Web App
-----------------------------------------

To run the app, use this command:

```sh
lein trampoline run --config examples/multiserver_app/multiserver-example.conf \
                    --bootstrap-config examples/multiserver_app/bootstrap.cfg

```

Open

```
http://localhost:8080/hello

```

in your browser to see the famous Hello World message.

Open

```
http://localhost:9000/hello

```

in your browser to see the same message. Note that this is on a separate server on a different port.

Open

```
http://localhost:9000/goodbye

```

in your browser to see a "Goodbye world" message. Note that this response is NOT displayed at address

```
http://localhost:8080/goodbye

```

due to the fact that it was added specifically to the server on port 9000 and NOT the server on port
8080.