diff --git a/config/environments/production.rb b/config/environments/production.rb index 8af97fcc..35d82ea1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,7 +58,7 @@ Rails.application.configure do # Include generic and useful information about system operation, but avoid logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). config.log_level = :info - config.logger = Logger.new("/srv/lobste.rs/log/production.log") + config.logger = Logger.new("/srv/lobsters/lobsters/log/production.log") # Use default logging formatter so that PID and timestamp are not suppressed. .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } diff --git a/config/puma.rb b/config/puma.rb index dd4a5f14..09a2119f 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -21,7 +21,7 @@ environment ENV.fetch("RAILS_ENV") { "development" } # Specifies the `pidfile` that Puma will use. pidfile ENV.fetch("PIDFILE") { if ENV.fetch("RAILS_ENV") == "production" - "/srv/lobste.rs/run/puma.pid" + "/srv/lobsters/lobsters/puma.pid" else "tmp/puma.pid" end diff --git a/script/expire_page_cache b/script/expire_page_cache index ac516fb8..c0fcdf0c 100755 --- a/script/expire_page_cache +++ b/script/expire_page_cache @@ -1,4 +1,4 @@ #!/bin/sh -find /srv/lobste.rs/http/tmp/cache/ -type f -not -mmin 2 -delete -find /srv/lobste.rs/http/public/cache/ -type f -not -mmin 2 -delete +find /srv/lobsters/lobsters/tmp/cache/ -type f -not -mmin 2 -delete +find /srv/lobsters/lobsters/public/cache/ -type f -not -mmin 2 -delete