This repository was archived by the owner on Jul 3, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 11# Setup && running the application
22
3+ Before you run the application for the first time, you must create the database and run migrations:
4+
5+ ```
6+ docker-compose run backend rake db:create db:migrate
7+ ```
8+
9+ Or alternatively, log in via bash and run the commands there:
10+ ```
11+ docker-compose run backend bash
12+ root@1c5e8aedd21a:/usr/src/backend-app# rake db:create
13+ Created database 'backend_development'
14+ Created database 'backend_test'
15+ root@1c5e8aedd21a:/usr/src/backend-app# rake db:migrate
16+ == 20180306161431 DeviseTokenAuthCreateUsers: migrating =======================
17+ -- create_table(:users)
18+ -> 0.0164s
19+ -- add_index(:users, :email, {:unique=>true})
20+ -> 0.0088s
21+ -- add_index(:users, [:uid, :provider], {:unique=>true})
22+ -> 0.0078s
23+ -- add_index(:users, :reset_password_token, {:unique=>true})
24+ -> 0.0092s
25+ -- add_index(:users, :confirmation_token, {:unique=>true})
26+ -> 0.0070s
27+ == 20180306161431 DeviseTokenAuthCreateUsers: migrated (0.0497s) ==============
28+ ```
29+
330Running the app (and navigate to ` http://localhost:8080 ` ):
431
532```
You can’t perform that action at this time.
0 commit comments