From f9802ea7caa707f196d49a9a845300e627ae11cd Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Sun, 17 Sep 2023 12:24:54 +0100 Subject: [PATCH] Name (and purpose) change Using this as my own site now --- README.md | 14 ++++++-------- app/mailers/application_mailer.rb | 2 +- app/views/user_mailer/confirm_email.text.erb | 4 ++-- config/application.rb | 2 +- config/cable.yml | 2 +- config/database.yml | 10 +++++----- config/environments/production.rb | 2 +- config/locales/views/layouts/application.yml | 2 +- config/routes.rb | 2 +- devenv.nix | 2 +- 10 files changed, 20 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6ac4b9d..58be258 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ -# Summon Player +# soc -Summon player is a lightweight digital helper for tabletop games. It is designed -for use in a few situations: -- To use for theatre of the mind games alongside a video call platform -- To use alongside a platform such as Owlbear Rodeo -- For Play-by-Post games -- To manage in-person games +Soc (stream of consciousness) is a personal website platform for introverts. It is +designed to run a blog as well as a microblog. + +This codebase is currently geared for my own site, but can be easily adapted. # Development environment @@ -14,5 +12,5 @@ still be able to use `devenv.nix` as documentation of what is required. # Deployment -The plan is to use MRSK for deployment. +The plan is to use Kamal for deployment. diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 1f6be61..c55c864 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,4 +1,4 @@ class ApplicationMailer < ActionMailer::Base - default from: "hello@summonplayer.com" + default from: "hello@tsvallender.co.uk" layout "mailer" end diff --git a/app/views/user_mailer/confirm_email.text.erb b/app/views/user_mailer/confirm_email.text.erb index fba5a8f..5b21229 100644 --- a/app/views/user_mailer/confirm_email.text.erb +++ b/app/views/user_mailer/confirm_email.text.erb @@ -1,10 +1,10 @@ Hi, Please visit the following link to confirm your email and access your new -account at Summon Player: +account at Soc <%= confirm_email_url(email: @user.email, confirmation_string: @user.email_confirmation_string) %> Thanks, -The Summon Player team. +The Soc team. diff --git a/config/application.rb b/config/application.rb index dd2fe97..e58a926 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,7 +7,7 @@ require "rails/all" # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) -module SummonPlayer +module Soc class Application < Rails::Application config.load_defaults 7.0 diff --git a/config/cable.yml b/config/cable.yml index 6dccec7..829f1fd 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -7,4 +7,4 @@ test: production: adapter: redis url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> - channel_prefix: summon_player_production + channel_prefix: soc_production diff --git a/config/database.yml b/config/database.yml index 9ebeb3c..0b2538a 100644 --- a/config/database.yml +++ b/config/database.yml @@ -4,18 +4,18 @@ default: &default # For details on connection pooling, see Rails configuration guide # https://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - username: summon_player + username: soc development: <<: *default - database: summon_player_development + database: soc_development password: postgres test: <<: *default - database: summon_player_test + database: soc_test production: <<: *default - database: summon_player_production - password: <%= ENV["SUMMON_PLAYER_DATABASE_PASSWORD"] %> + database: soc_production + password: <%= ENV["SOC_DATABASE_PASSWORD"] %> diff --git a/config/environments/production.rb b/config/environments/production.rb index 612e509..781c71d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -60,7 +60,7 @@ Rails.application.configure do # Use a real queuing backend for Active Job (and separate queues per environment). # config.active_job.queue_adapter = :resque - # config.active_job.queue_name_prefix = "summon_player_production" + # config.active_job.queue_name_prefix = "soc_production" config.action_mailer.perform_caching = false diff --git a/config/locales/views/layouts/application.yml b/config/locales/views/layouts/application.yml index aedd09f..b7d3ca8 100644 --- a/config/locales/views/layouts/application.yml +++ b/config/locales/views/layouts/application.yml @@ -1,5 +1,5 @@ en: - site_title: Summon Player + site_title: T S Vallender home: Home log_in: Log in log_out: Log out diff --git a/config/routes.rb b/config/routes.rb index 30a5a4f..0327847 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true Rails.application.routes.draw do - default_url_options :host => "summonplayer.com" + default_url_options :host => "tsvallender.co.uk" root "home_pages#index" diff --git a/devenv.nix b/devenv.nix index 86cd9d5..229a79a 100644 --- a/devenv.nix +++ b/devenv.nix @@ -22,7 +22,7 @@ enable = true; listen_addresses = "127.0.0.1"; initialScript = '' - CREATE ROLE summon_player WITH LOGIN PASSWORD 'postgres' SUPERUSER; + CREATE ROLE soc WITH LOGIN PASSWORD 'postgres' SUPERUSER; ''; };