{"action":"closed","issue":{"url":"https://api.github.com/repos/puma/puma/issues/1108","repository_url":"https://api.github.com/repos/puma/puma","labels_url":"https://api.github.com/repos/puma/puma/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/puma/puma/issues/1108/comments","events_url":"https://api.github.com/repos/puma/puma/issues/1108/events","html_url":"https://github.com/puma/puma/issues/1108","id":181269987,"number":1108,"title":"No such file or directory shared/log/puma.stdout.log","user":{"login":"ShootingStarr","id":1939737,"avatar_url":"https://avatars.githubusercontent.com/u/1939737?v=3","gravatar_id":"","url":"https://api.github.com/users/ShootingStarr","html_url":"https://github.com/ShootingStarr","followers_url":"https://api.github.com/users/ShootingStarr/followers","following_url":"https://api.github.com/users/ShootingStarr/following{/other_user}","gists_url":"https://api.github.com/users/ShootingStarr/gists{/gist_id}","starred_url":"https://api.github.com/users/ShootingStarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShootingStarr/subscriptions","organizations_url":"https://api.github.com/users/ShootingStarr/orgs","repos_url":"https://api.github.com/users/ShootingStarr/repos","events_url":"https://api.github.com/users/ShootingStarr/events{/privacy}","received_events_url":"https://api.github.com/users/ShootingStarr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-05T21:25:13Z","updated_at":"2016-10-05T22:20:24Z","closed_at":"2016-10-05T22:20:24Z","body":"When I try run puma server on local machine, I see this an error:\r\n```\r\n/.rvm/gems/ruby-2.3.1@app/gems/puma-3.6.0/lib/puma/runner.rb:107:in `reopen': No such file or directory @ rb_io_reopen - /shared/log/puma.stdout.log (Errno::ENOENT)\r\n```\r\npuma.rb:\r\n```\r\n# Change to match your CPU core count\r\nworkers 1\r\n\r\n# Min and Max threads per worker\r\nthreads 1, 6\r\n\r\napp_dir = File.expand_path(\"../..\", __FILE__)\r\nshared_dir = \"#{app_dir}/shared\"\r\n\r\n# Default to production\r\nrails_env = ENV['RAILS_ENV'] || \"production\"\r\nenvironment rails_env\r\n\r\n# Set up socket location\r\nbind \"unix://#{shared_dir}/sockets/puma.sock\"\r\n\r\n# Logging\r\nstdout_redirect \"#{shared_dir}/log/puma.stdout.log\", \"#{shared_dir}/log/puma.stderr.log\", true\r\n\r\n# Set master PID and state locations\r\npidfile \"#{shared_dir}/pids/puma.pid\"\r\nstate_path \"#{shared_dir}/pids/puma.state\"\r\nactivate_control_app\r\n\r\non_worker_boot do\r\n  require \"active_record\"\r\n  ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished\r\n  ActiveRecord::Base.establish_connection(YAML.load_file(\"#{app_dir}/config/database.yml\")[rails_env])\r\nend\r\n\r\n```"}}
{"actor":{"display_login":"ShootingStarr"}}