Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.