Top Level Namespace

Defined Under Namespace

Modules: Capistrano

Instance Method Summary collapse

Instance Method Details

#webserver_run(host) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/nginxinator/built-in.rb', line 11

def webserver_run(host)
  execute("docker", "run", "--detach", "--tty",
    "--name",   fetch(:webserver_container_name),
    "--volume", "#{fetch(:deploy_to)}:#{fetch(:deploy_to)}:rw",
    "--entrypoint", "/usr/sbin/nginx",
    "--restart", "always",
    fetch(:webserver_ports_options),
    fetch(:webserver_image_name),
    "-c", shared_path.join('nginx', 'nginx.conf'))
end