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
Before running the node server, you need to have two API tokens set as environment variables. You might want to add these to script `server/localenv.sh`.
59
+
### Start the development server
60
+
61
+
This repo is configured for live build and reload of both the client and server,
62
+
running in Docker.
23
63
24
64
```bash
25
-
export KEYMANSTATUS_TEAMCITY_TOKEN=[your personal auth token here]
26
-
export KEYMANSTATUS_GITHUB_TOKEN=[your personal auth token here]
27
-
export KEYMANSTATUS_SENTRY_TOKEN=[your personal auth token here]
65
+
./build.sh start --debug
28
66
```
29
67
30
-
On Windows, you'll also need to have Git Bash installed in `C:\Program Files\git\bin\bash.exe`.
68
+
* Point your browser to <http://localhost:8061> to view the live reload version
69
+
of the application.
70
+
* The site takes a moment to compile and load; you can watch the logs to see
71
+
when it is ready.
31
72
32
-
##Development server
73
+
### Running unit tests
33
74
34
-
This repo is configured for live build and reload of both the client and server. You'll need two terminals open. In the first, run:
75
+
The unit tests will currently stop the back end container before running.
35
76
36
77
```bash
37
-
npm run start-server
78
+
./build.sh test --debug
38
79
```
39
80
40
-
and in the second, run:
81
+
## Production setup
82
+
83
+
This site is deployed to a Kubernetes cluster via configuration in a private
84
+
repo to status.keyman.com.
85
+
86
+
You can run the production mode site locally with:
41
87
42
88
```bash
43
-
npm run start-client
89
+
./build.sh stop build start --release
44
90
```
45
91
46
-
* Point your browser to <http://localhost:4200> to view the live reload version of the application.
47
-
* The query parameter `?c=1` adds a contributions view which is not visible by default.
48
-
* Another query parameter `?sprint=P8S4` parameter to view sprint contributions data for P8S4
49
-
50
-
### @keymanapp-test-bot
92
+
* Point your browser to <http://localhost:8060> to view the production version
93
+
of the application.
51
94
52
-
Three files needed for development:
95
+
## Site query parameters
53
96
54
-
*`.keymanapp-test-bot.appid`: integer appid (e.g. 134443 for the normal test app)
55
-
*`.keymanapp-test-bot.pem`: certificate for GitHub integration for app
56
-
*`.keymanapp-test-bot.secret`: secret for GitHub integration for app
97
+
* The following query parameters are available:
98
+
*`?c=1` shows contributions at the top center
99
+
*`?o=1` shows owner for each platform
100
+
*`?a=1` shows build agent status at the top right
101
+
*`?r=1` adds a refresh button to force a server-side full refresh (this is
102
+
costly, so only press this when there has been a data error such as a
103
+
network failure making status data out of date; most errors are
0 commit comments