Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created June 4, 2017 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerflint/b988e86dd97778ec0cb25e78e4c43a0a to your computer and use it in GitHub Desktop.
Save tylerflint/b988e86dd97778ec0cb25e78e4c43a0a to your computer and use it in GitHub Desktop.
Nanobox Rails Example
run.config:
  engine: ruby
  cache_dirs:
    - node_modules
    - vendor/assets/bower_components
    - .bundle
    - vendor/bundle
  extra_packages:
    - nodejs-4
  extra_steps:
    - npm install
    - node_modules/.bin/bower install
deploy.config:
  before_live:
    web.dashboard:
      - bundle exec rake db:setup_or_migrate
  extra_steps:
    - bundle exec rake assets:precompile
web.dashboard:
  start: bundle exec rails s
  writable_dirs:
    - tmp
    - log
  log_watch:
    dashboard[production]: log/production.log
worker.sequences:
  start: bundle exec sidekiq
  writable_dirs:
    - tmp
    - log
data.queue:
  image: nanobox/redis
data.db:
  image: nanobox/postgresql:9.4
  config:
    extensions:
      - uuid-ossp
      - plpgsql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment