PostgreSQL と Redis
openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -subj /CN=localhost -keyout server.key -out server.crt
docker compose up
前提:下記のHeroku用Procfileを使用している
web: bin/rails server -p ${PORT:-5000} -e $RAILS_ENV
worker: bundle exec sidekiq -q default -q mailers -q active_storage_analysis -q active_storage_purge
PORT=3000 RAILS_ENV=development REDIS_URL=rediss://localhost:6379 foreman start
REDIS_URL=rediss://localhost:6379 bin/rails c
Sidekiq::Stats.new
MessageMailer.with(to: 'foo@example.com', time: Time.zone.local(2021, 4, 9)).hello_reiwa_date.deliver_later
Sidekiq::Stats.new
http://localhost:3000/admins/home
admin@example.com / pass1234
http://localhost:3000/admins/sidekiq
docker volume prune
docker system prune
docker image prune