-
Notifications
You must be signed in to change notification settings - Fork 2
/
instellar.yml
86 lines (77 loc) · 1.58 KB
/
instellar.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
dependencies:
build:
- elixir
- npm
runtime:
- bash
- curl
- s6
- jq
- ca-certificates
- polar-openrc
trace: true
stack: alpine/3.19
build:
command: |
export MIX_ENV=prod
mix local.hex --force
mix local.rebar --force
mix do deps.get --only prod
# npm --prefix ./assets install ./assets
# Comment out mix assets.deploy for non phoenix apps
mix assets.deploy
mix release
destinations:
- _build/prod/rel/polar/*
run:
commands:
- binary: polar
call: eval 'Polar.Release.Tasks.migrate'
name: migrate
- binary: polar
call: remote
name: console
- binary: tail
call: -f -n 100 /var/log/polar/current
name: logs
path: /usr/bin
name: polar
services:
- binary: polar
name: web
start:
call: start
hook:
post-deinstall: |
rc-service polar stop
rc-update del polar
post-install: |
rc-update add polar
rc-service polar migrate
post-upgrade: |
rc-service polar migrate
rc-service polar start
pre-upgrade: |
rc-service polar stop
kits:
- description: Web service
main: true
name: web
ports:
- main: true
name: web
target: 4000
variables:
- default_value: 'true'
key: PHX_SERVER
- driver: generic/secret
driver_options:
length: 128
key: SECRET_KEY_BASE
- default_value: ecto:///
driver: database/postgresql
key: DATABASE
- driver: bucket/aws-s3
driver_options:
acl: public
key: AWS_S3