-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boxfile.yml
47 lines (37 loc) · 872 Bytes
/
boxfile.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
run.config:
# elixir runtime
engine: elixir
engine.config:
runtime: elixir-1.8
erlang_runtime: erlang-21
# we need nodejs in development
# ensure inotify exists for hot-code reloading
dev_packages:
- nodejs
- inotify-tools
# cache assets/node_modules
cache_dirs:
- assets/node_modules
# add node_module bins to the $PATH
extra_path_dirs:
- assets/node_modules/.bin
# enable the filesystem watcher
fs_watch: true
extra_steps:
- cd assets && yarn
deploy.config:
# generate the static assets digest
extra_steps:
- mix phx.digest
before_live:
web.main:
- mix ecto.create --quiet
- mix ecto.migrate
web.main:
start: node-start mix phx.server
# add postgres as a data component
data.db:
image: mubox/postgresql:9.6
# add redis as a data component
data.cache:
image: mubox/redis:4.0