Skip to content

Commit 4627891

Browse files
authored
Recommend executing via 'bundle exec ruby' instead of 'ruby' (#18)
1 parent e0ba5e2 commit 4627891

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This will install all dependencies listed in the `Gemfile.lock` file.
5151
To run the example application, run the following command:
5252

5353
```bash
54-
ruby main.rb <source-token>
54+
bundle exec ruby main.rb <source-token>
5555
```
5656

5757
*Don't forget to replace `<source-token>` with your actual source token which you can find by going to logtail.com -> sources -> edit.*

example-project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Alternatively, add `gem "logtail"` to your `Gemfile` manually and then run `bund
2121
To run the example application, run the following command adding your source token:
2222

2323
```bash
24-
ruby main.rb <source-token>
24+
bundle exec ruby main.rb <source-token>
2525
```
2626

2727
This will create a total of 5 different logs, each corresponding to a different log level. You can review these logs in Logtail.

example-project/main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Check for program arguments
1010
if ARGV.length != 1
11-
puts "Program needs source token to run. Run the program as followed\nruby main.rb <source-token>"
11+
puts "Program needs source token to run. Run the program as followed\nbundle exec ruby main.rb <source-token>"
1212
exit
1313
end
1414
# Create logger

0 commit comments

Comments
 (0)