-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboxfile.yml
44 lines (36 loc) · 813 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
run.config:
# elixir runtime
engine: elixir
engine.config:
runtime: elixir-1.5
# ensure inotify exists for hot-code reloading
dev_packages:
- inotify-tools
# packages available in prod and dev envs
extra_packages:
- nodejs
- git
# cache 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
deploy.config:
# just before the new process comes online,
# let's migrate the database
before_live:
web.main:
- mix phx.digest
- mix ecto.create --quiet
- mix ecto.migrate
# services
data.db:
image: nanobox/postgresql
web.main:
start: node-start mix phx.server
writable_dirs:
- _build/
- priv/static/