Skip to content

Commit ff89b48

Browse files
committed
Add spec/dummy/bin/prod
1 parent aa5067b commit ff89b48

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ If you run `rspec` at the top level, you'll see this message: `require': cannot
294294
After running a test, you can view the coverage results in SimpleCov reports by opening `coverage/index.html`.
295295
296296
### Benchmarking
297-
You'll need to [install `k6`](https://grafana.com/docs/k6/latest/set-up/install-k6/) first.
297+
You'll need to [install `k6`](https://grafana.com/docs/k6/latest/set-up/install-k6/) first and start the dummy app in production mode (using [bin/prod](https://github.com/shakacode/react_on_rails_pro/blob/master/spec/dummy/bin/prod)).
298+
You can remove even more overhead by using
299+
```sh
300+
bin/prod &> /dev/null
301+
```
298302
299303
The benchmarking scripts are in `k6` directory, so you can run, for example:
300304
```sh

spec/dummy/bin/prod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
RAILS_ENV=production NODE_ENV=production overmind start -f Procfile.static

0 commit comments

Comments
 (0)