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
28566a7a
Commit
28566a7a
authored
Jun 05, 2018
by
John Noel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
ce77e584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
README.md
README.md
+26
-0
No files found.
README.md
View file @
28566a7a
...
...
@@ -75,6 +75,32 @@ docker-compose run web rails new . --force --database=postgresql
docker-compose up
```
*
Edit
``config/database.yml``
```
bash
default: &default
adapter: postgresql
encoding: unicode
host: db
username: <%
=
ENV[
'POSTGRES_USER'
]
%>
password: <%
=
ENV[
'POSTGRES_PASSWORD'
]
%>
pool: <%
=
ENV.fetch
(
"RAILS_MAX_THREADS"
)
{
5
}
%>
development:
<<:
*
default
database: <%
=
"#{ENV['DATABASE_NAME']}_development"
%>
test
:
<<:
*
default
database: <%
=
"#{ENV['DATABASE_NAME']}_test"
%>
production:
<<:
*
default
database: app_production
username: app
password: <%
=
ENV[
'RAILS_DATABASE_PASSWORD'
]
%>
```
*
Create the
``development``
and
``test``
database
```
bash
...
...
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