Skip to content

Commit 765cba1

Browse files
committed
Improve the example for running rails_stats outside a Rails app
This fixes #15
1 parent a6e059c commit 765cba1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ RailsStats mainly adds the ability to be run from outside the project in questio
88

99
### Run it outside Rails project
1010

11-
```bash
11+
You will need a `Rakefile` in the directory where you call `rake` and you will
12+
need to require `rails_stats`:
13+
14+
```ruby
15+
# Rakefile
16+
require "rails_stats"
17+
```
1218

13-
$ bundle exec rake stats[/path/to/app/]
19+
Then you can call it:
20+
21+
```bash
22+
$ rake stats\[/path/to/app/\]
1423

1524
Directory: /path/to/app/
1625

0 commit comments

Comments
 (0)