File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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
5560psql 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
5866yarn run migrate
5967```
6068
@@ -67,7 +75,10 @@ sudo apt install postgresql postgresql-contrib
6775# Create users and databases
6876sudo -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
7182yarn migrate
7283```
7384
You can’t perform that action at this time.
0 commit comments