Last active
September 3, 2015 23:17
-
-
Save dlanileonardo/30dc0b5eac3db4bdf8dc to your computer and use it in GitHub Desktop.
Basic Azkfile.js to Rails App without Database
This file contains hidden or 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 | |
*/ | |
systems({ | |
'rails-app': { | |
image: { docker: "azukiapp/ruby:2.2", }, | |
provision: [ | |
"bundle install --path /azk/bundler", | |
"bundle exec rake db:create db:migrate db:seed", | |
], | |
workdir: "/azk/#{manifest.dir}", | |
command: "bundle exec rails server -P /tmp/rails.pid -p $HTTP_PORT -b 0.0.0.0", | |
shell: "/bin/bash", | |
mounts: { | |
"/azk/#{manifest.dir}": path("."), | |
"/azk/bundler": persistent("bundler"), | |
"/azk/.rbenv": persistent("bundler"), | |
}, | |
scalable: {"default": 1}, | |
http: { | |
domains: ["#{system.name}.#{azk.default_domain}"] | |
}, | |
ports: { | |
http: "3000/tcp", | |
}, | |
envs: { | |
RUBY_ENV: "development", | |
RACK_ENV: "development", | |
RAILS_ENV: "development", | |
ENABLE_AZK: true, | |
HOST: "#{system.name}.#{azk.default_domain}", | |
}, | |
export_envs: { | |
HTTP_PORT: "#{azk.default_domain}:#{net.port.http}", | |
HTTPS_PORT: "#{azk.default_domain}:#{net.port.http}", | |
}, | |
wait: { retry: 7, timeout: 7000 } | |
}, | |
}); | |
setDefault("rails-app") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment