-
-
Save cj/297d74d09739a2df15a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
"my-app": { | |
// Dependent systems | |
depends: [], // postgres, mysql, mongodb ... | |
// More images: http://images.azk.io | |
image: {"docker": "ruby:2.2.4"}, | |
// Steps to execute before running instances | |
provision: [ | |
"bundle install --path /azk/bundler", | |
"make install" | |
], | |
workdir: "/azk/#{manifest.dir}", | |
shell: "/bin/bash", | |
command: "make server", | |
wait: {"retry": 20, "timeout": 1000}, | |
mounts : { | |
'/azk/#{manifest.dir}': path('./autolink.cuba'), | |
'/azk/bundler' : persistent('bundler'), | |
}, | |
scalable: {"default": 1}, | |
http: { | |
// my-app.dev.azk.io | |
domains: [ "#{system.name}.#{azk.default_domain}" ] | |
}, | |
envs: { | |
LANG : '', | |
LC_ALL: '', | |
// set instances variables | |
RACK_ENV : 'development', | |
BUNDLE_APP_CONFIG : '/azk/bundler', | |
} | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment