class Object

Public Instance Methods

webserver_run(host) click to toggle source
# 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