Skip to content

Instantly share code, notes, and snippets.

@schesnowitz
Last active March 2, 2018 14:21
Show Gist options
  • Save schesnowitz/73be37d1d9ce9e1127e3ed05833f692c to your computer and use it in GitHub Desktop.
Save schesnowitz/73be37d1d9ce9e1127e3ed05833f692c to your computer and use it in GitHub Desktop.
run.config:
engine: ruby
engine.config:
runtime: ruby-2.4
extra_packages:
- nodejs
- nginx
- pkgconf
- libxml2
- libxslt
deploy.config:
extra_steps:
- rake assets:precompile RAILS_ENV=production
before_live:
web.main:
- rake db:setup_or_migrate
data.db:
image: nanobox/postgresql:9.5
web.main:
start:
nginx: nginx -c /app/config/nginx.conf
puma: bundle exec puma -C /app/config/puma.rb
writable_dirs:
- tmp
- db
- public/uploads
log_watch:
rails: 'log/production.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment