Skip to content

Instantly share code, notes, and snippets.

@davit-khaburdzania
Created February 28, 2018 21:54
Show Gist options
  • Save davit-khaburdzania/9d5de4afbe0a09ef477e6e581a0d4ff7 to your computer and use it in GitHub Desktop.
Save davit-khaburdzania/9d5de4afbe0a09ef477e6e581a0d4ff7 to your computer and use it in GitHub Desktop.
run.config:
engine: elixir
dev_packages:
- inotify-tools
extra_packages:
- nodejs
fs_watch: true
cache_dirs:
- assets/node_modules
extra_path_dirs:
- assets/node_modules/.bin
- assets/node_modules/webpack/.bin
build_triggers:
- assets/package.json
extra_steps:
- cd assets && npm install
deploy.config:
extra_steps:
- mix phx.digest
transform:
- cd assets && npm run deploy
before_live:
web.site:
- mix ecto.create --quiet
- mix ecto.migrate
web.site:
start: node-start mix phx.server
routes:
- '/'
log_watch:
site[main]: /var/log/gonano/app/current
writable_dirs:
- _build
web.api:
start: node-start mix phx.server
routes:
- '/api'
log_watch:
api[main]: /var/log/gonano/app/current
writable_dirs:
- _build
data.db:
image: nanobox/postgresql
config:
extensions:
- postgis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment