fix application path

This commit is contained in:
Ben Harris 2024-01-16 14:17:08 -05:00
parent c3b9cab8a9
commit 9e4b0e1b27
3 changed files with 4 additions and 4 deletions

View File

@ -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) }

View File

@ -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

View File

@ -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