File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
# docker-rails6-postgres
2
2
3
3
## How to buildup environment
4
- ### rails new
4
+ ### Clone This Repository
5
+
6
+ ```
7
+ $ git clone https://github.com/tokidrill/docker-rails6-postgres.git
8
+ ```
9
+
10
+ ### Run rails new
5
11
Create Rails project with PostgreSQL.
6
12
7
13
```
@@ -14,10 +20,11 @@ $ docker-compose run web rails new . --force --no-deps --databse=postgres --skip
14
20
$ docker-compose build --no-cache
15
21
```
16
22
17
- ### Modify your database configulation and create database.
23
+ ### Modify your database configulation and create database
18
24
19
25
Modify ``` database.yml ``` .
20
26
27
+ config/database.yml
21
28
``` config/database.yml
22
29
23
30
default: &default
@@ -49,14 +56,15 @@ production:
49
56
Then, run migrate for initialize.
50
57
51
58
```
52
- $docker-compose run web rake db:create
59
+ $ docker-compose run web rake db:create
53
60
```
54
61
55
62
## Up Docker container
56
63
57
64
```
58
- $docker-compose up -d
65
+ $ docker-compose up -d
59
66
```
60
67
61
68
## Yay! You're on Rails !!
62
69
Access http://localhost:3000 .
70
+ Congratulations !! Now, you're on Rails !!
You can’t perform that action at this time.
0 commit comments