Skip to content

Commit 0c1cbdb

Browse files
Park Juhyungmajecty
authored andcommitted
Add description about "updating configuration" in README.md
1 parent 40d29f9 commit 0c1cbdb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ yarn install
4444

4545
#### Create the database and user on the PostgreSQL
4646

47+
##### Update configuration
48+
49+
Update ./create_user_and_db.sql and config/* files before creating database schema.
50+
If you want to create a production datatabase, please create config/production.json by copying config/dev.json
51+
4752
##### Mac
4853

4954
```
@@ -54,7 +59,10 @@ brew services start postgresql
5459
# Create users and databases
5560
psql postgres -f create_user_and_db.sql
5661
57-
# Create the schema of the database
62+
# Create tables for production
63+
NODE_ENV=production yarn migrate
64+
65+
# Create tables for development
5866
yarn run migrate
5967
```
6068

@@ -67,7 +75,10 @@ sudo apt install postgresql postgresql-contrib
6775
# Create users and databases
6876
sudo -u postgres psql -f create_user_and_db.sql
6977
70-
# Create tables
78+
# Create tables for production
79+
NODE_ENV=production yarn migrate
80+
81+
# Create tables for development
7182
yarn migrate
7283
```
7384

0 commit comments

Comments
 (0)