Skip to content

Commit

Permalink
Merge pull request #361 from airbrake/host-clarification
Browse files Browse the repository at this point in the history
README: clarify how to configure hosts with subpaths
  • Loading branch information
kyrylo authored Nov 16, 2018
2 parents 40d4e25 + f4cbda1 commit 8deb649
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ Airbrake.configure do |c|
end
```

If your backend is hosted behind a subpath such as `http://localhost:8080/api`,
make sure to append a trailing slash to the end of the URL:

```ruby
Airbrake.configure do |c|
c.host = 'http://localhost:8080/api/' # Note the trailing slash
end
```

#### root_directory

Configures the root directory of your project. Expects a String or a Pathname,
Expand Down

0 comments on commit 8deb649

Please sign in to comment.