forked from nickthecook/archyve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathops.yml
68 lines (68 loc) · 1.57 KB
/
ops.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
dependencies:
brew:
- overmind
- poppler
- pandoc
custom:
- bundle config --local path vendor/bundle
- bundle config set --local build.pg ${PG_OPTS}
- bundle
- containers:
up: ops deps start
down: ops deps stop
- yarn
apt:
- ruby-poppler
gem:
- rerun
forwards:
deps: deps
actions:
server:
command: overmind start -f Procfile.dev
load_secrets: true
rails:
command: bin/rails
load_secrets: true
migrate:
command: bin/rails db:migrate && bin/rails neo4j:migrate
load_secrets: true
shell:
command: docker compose exec archyve bash
alias: sh
with_secrets:
command: " "
load_secrets: true
shell_expansion: true
request:
command: bin/request
load_secrets: true
alias: r
test:
command: bundle exec rspec --tag "~skip"
alias: t
load_secrets: true
test-watch:
command: rerun --dir app,spec --no-notify -qb -- ops test
alias: tw
lint: bundle exec rubocop
lint-watch:
command: rerun --dir app,spec --no-notify -qb -- ops lint
alias: lw
container:
command: cd container && ops
alias: c
load_secrets: true
repl:
command: rails r scripts/repl
load_secrets: true
shell_expansion: true
options:
environment:
HOMEBREW_PREFIX: $(brew --prefix)
PG_OPTS: ${PG_OPTS:- --with-pg-lib=/usr/lib --with-opt-dir="${HOMEBREW_PREFIX:-/usr/local}/opt/libpq"}
API_BASE_URL: ${API_BASE_URL:-http://localhost:3300/v1}
REDIS_URL: ${REDIS_URL:-redis://localhost:6378/1}
PORT: ${PORT:-3300}
exec:
load_secrets: true