-
Notifications
You must be signed in to change notification settings - Fork 4
/
boxfile.yml
57 lines (47 loc) · 1.09 KB
/
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
48
49
50
51
52
53
54
55
56
57
run.config:
# elixir runtime
engine: elixir
engine.config:
runtime: elixir-1.5.2
erlang_runtime: erlang-20.1
# we need nodejs in development
# ensure inotify exists for hot-code reloading
dev_packages:
- nodejs
- inotify-tools
# cache node_modules
cache_dirs:
- client/web/node_modules
# add node_module bins to the $PATH
extra_path_dirs:
- client/web/node_modules/.bin
# enable the filesystem watcher
fs_watch: true
# run npm install
extra_steps:
- cd client/web && yarn install
extra_packages:
- python-2.7.14
- git
deploy.config:
# run brunch build
extra_steps:
- cd client/web && yarn build
- mix phx.digest
# just before the new process comes online,
# let's migrate the database
before_live:
web.main:
- mix ecto.create --quiet --no-deps-check
- mix ecto.migrate --no-deps-check
web.main:
writable_dirs:
- _build
log_watch:
app[crash]: erl_crash.dump
start: node-start mix phx.server
# add postgres as a data component
data.db:
image: nanobox/postgresql
config:
version: 9.6