Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit ee1f29d

Browse files
committed
Add setup instructions for Rails db
1 parent b843e3c commit ee1f29d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
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+
330
Running the app (and navigate to `http://localhost:8080`):
431

532
```

0 commit comments

Comments
 (0)