5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-23 08:47:05 +00:00
tilde.news/script/traffic_range
Peter Bhat Harkins c3f8625788 standardrb
I can't take Rubocop any more. Moving up to Ruby 3 forces us to update RuboCop,
and it comes with dozens of linters that I'd have to evaluate, none of which is
a marginal improvement. I'm done having opinions.
2023-09-08 15:39:50 -05:00

14 lines
385 B
Ruby
Executable File

#!/usr/bin/env ruby
# Maintenance for the traffic intensity on the logo, see TrafficHelper
ENV["RAILS_ENV"] ||= "production"
APP_PATH = File.expand_path("../../config/application", __FILE__)
require File.expand_path("../../config/boot", __FILE__)
require APP_PATH
Rails.application.require_environment!
# calculate and cache activity range for traffic
TrafficHelper.cache_traffic!