Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
1-getting-started-with-rails
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mis-21-2018-intersession
1-getting-started-with-rails
Commits
c78fd29f
Commit
c78fd29f
authored
Jun 05, 2018
by
John Noel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Better Errors in README.md
parent
389edbe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
README.md
README.md
+30
-2
No files found.
README.md
View file @
c78fd29f
# Getting Started with Rails, Docker
##
Usage
##
Setup
*
Clone this repository
```
bash
...
...
@@ -101,8 +101,36 @@ production:
password: <%
=
ENV[
'RAILS_DATABASE_PASSWORD'
]
%>
```
*
Create the
``development``
and
``test``
database
*
Create the
``development``
and
``test``
database
s
```
bash
docker-compose run web rails db:create
```
## Adding [Better Errors](https://github.com/charliesome/better_errors) gem
*
In
``Gemfile``
, add these gems under
``development``
group.
```
bash
group :development
do
...
gem
'better_errors'
gem
'binding_of_caller'
end
```
*
Run this command to setup Better Errors initializer file.
```
bash
touch
config/initializers/better_errors.rb
```
*
Open
``config/initializers/better_errors.rb``
.
*
Add this code in
``config/initializers/better_errors.rb``
```
bash
if
Rails.env.development?
BetterErrors::Middleware.allow_ip!
"0.0.0.0/0"
end
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment