From 4568733655f747947f50bb4ca6d5497a2c500243 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Fri, 31 Mar 2023 11:25:21 -0400 Subject: [PATCH] Updated puma.rb to put temp files under ./tmp/ --- .gitignore | 3 +++ Gemfile.lock | 2 ++ LICENSE | 2 +- puma.rb | 9 ++++++--- tmp/.gitkeep | 0 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 tmp/.gitkeep diff --git a/.gitignore b/.gitignore index 0fd228f..0093388 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,9 @@ build-iPhoneSimulator/ # Ignore local config files config/ +# Ignore temp files +tmp/ + # Ignore Grunt.js dependencies node_modules/ diff --git a/Gemfile.lock b/Gemfile.lock index bd82b46..d4dc597 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,7 @@ GEM remote: https://rubygems.org/ specs: ffi (1.15.5) + ffi (1.15.5-x64-mingw-ucrt) listen (3.7.1) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -28,6 +29,7 @@ GEM tilt (2.0.11) PLATFORMS + x64-mingw-ucrt x86_64-linux DEPENDENCIES diff --git a/LICENSE b/LICENSE index 5f662b3..080ae67 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) +Copyright (c) 2023 Metaunix.net Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/puma.rb b/puma.rb index 7ce1173..698b1e7 100644 --- a/puma.rb +++ b/puma.rb @@ -1,8 +1,11 @@ root = Dir.getwd.to_s -bind 'tcp://0.0.0.0:3108' -pidfile '/tmp/puma.pid' -state_path '/tmp/puma.state' +bind_address = '0.0.0.0' +bind_port = 3108 +bind "tcp://#{bind_address}:#{bind_port}" + +pidfile './tmp/puma.pid' +state_path './tmp/puma.state' rackup root.to_s + '/config.ru' threads 4, 8 diff --git a/tmp/.gitkeep b/tmp/.gitkeep new file mode 100644 index 0000000..e69de29