-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdip.yml
100 lines (83 loc) · 2.34 KB
/
dip.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '7.1'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose.yml
interaction:
bash:
description: Run an arbitrary script within a container (or open a shell without deps)
service: runner
command: /bin/bash
compose_run_options: [no-deps]
bundle:
description: Run Bundler commands
service: runner
command: bundle
compose_run_options: [no-deps]
liveconsole:
description: Open a Bash shell within a Rails container (with dependencies up)
service: runner
command: /bin/bash heroku run console --app open-plaques-beta
livelogs:
description: Show what is happening right now
service: runner
command: /bin/bash heroku logs --tail --app open-plaques-beta
livepull:
description: Pull data from live into development
service: runner
command: /bin/bash local_restore.sh
logs_live:
description: view Heroku logs from Live
service: runner
command: /bin/bash heroku logs --tail --app open-plaques-beta
psql:
description: Run psql console
service: postgres
command: psql -h postgres -U postgres -d openplaques_development_20200350
rails:
description: Run Rails commands
service: runner
command: bundle exec rails
subcommands:
s:
description: Run Rails server available at http://localhost:3030
service: rails
compose:
run_options: [service-ports, use-aliases]
rake:
description: Run Rake commands
service: runner
command: bundle exec rake
'redis-cli':
description: Run Redis console
service: redis
command: redis-cli -h redis
rspec:
description: Run Rails tests
service: runner
environment:
RAILS_ENV: test
command: bundle exec rspec
rubocop:
description: Run Rubocop
service: runner
command: bundle exec rubocop
compose_run_options: [no-deps]
sh:
description: Open a Bash shell within a Rails container (with dependencies up)
service: runner
command: /bin/bash
yarn:
description: Run Yarn commands
service: runner
command: yarn
compose_run_options: [no-deps]
provision:
- dip compose down --volumes
- dip compose up -d postgres redis
- dip bundle install
- dip yarn install
- dip rails db:setup db:migrate db:seed RAILS_ENV=test
# - dip rails db:setup
- dip livepull