-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
30 lines (30 loc) · 1.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "lanebreach-api",
"version": "1.0.0",
"scripts": {
"api": "docker exec -it lbapi bash",
"api:console": "docker exec -it lbapi bash -c 'rails console'",
"worker": "docker exec -it worker bash",
"worker:console": "docker exec -it worker bash -c 'rails console'",
"build": "docker-compose -f docker-compose.yml build",
"build:db": "docker build -t lbdb ./db/",
"db": "docker exec -it lbdb bash -c 'psql bikelanes bikelanes'",
"db:reset": "docker-compose -f docker-compose.yml run lbapi bash -c 'rails db:environment:set RAILS_ENV=development db:drop db:create db:migrate && rails db:seed'",
"db:migrate": "docker-compose -f docker-compose.yml run lbapi bash -c 'rails db:migrate RAILS_ENV=development'",
"db:rollback": "docker-compose -f docker-compose.yml run lbapi bash -c 'rails db:rollback STEP=1 RAILS_ENV=development'",
"db:run": "docker run --name lbdb lbdb",
"db:seed": "docker-compose -f docker-compose.yml run lbapi bash -c 'rails db:seed RAILS_ENV=development'",
"start": "docker-compose -f docker-compose.yml up",
"stop": "docker stop $(docker ps -aq)"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lanebreach/lanebreach-api.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/lanebreach/lanebreach-api/issues"
},
"homepage": "https://github.com/lanebreach/lanebreach-api#readme"
}