Skip to content

Commit b7cd404

Browse files
authored
Update README.md
1 parent 53c20b3 commit b7cd404

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# docker-rails6-postgres
22

33
## 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
511
Create Rails project with PostgreSQL.
612

713
```
@@ -14,10 +20,11 @@ $ docker-compose run web rails new . --force --no-deps --databse=postgres --skip
1420
$ docker-compose build --no-cache
1521
```
1622

17-
### Modify your database configulation and create database.
23+
### Modify your database configulation and create database
1824

1925
Modify ```database.yml``` .
2026

27+
config/database.yml
2128
```config/database.yml
2229
2330
default: &default
@@ -49,14 +56,15 @@ production:
4956
Then, run migrate for initialize.
5057

5158
```
52-
$docker-compose run web rake db:create
59+
$ docker-compose run web rake db:create
5360
```
5461

5562
## Up Docker container
5663

5764
```
58-
$docker-compose up -d
65+
$ docker-compose up -d
5966
```
6067

6168
## Yay! You're on Rails !!
6269
Access http://localhost:3000 .
70+
Congratulations !! Now, you're on Rails !!

0 commit comments

Comments
 (0)