From bf0c1972d667d36872e3b90f033a535332b6c157 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Tue, 4 Jul 2023 13:15:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Procfile=20=E3=82=92?= =?UTF-8?q?=E5=B0=8E=E5=85=A5=E3=81=97=E3=81=9F=20(#65)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Procfile | 2 ++ config/initializers/constant_value.rb | 28 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Procfile create mode 100644 config/initializers/constant_value.rb diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..d143903 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} +release: touch /tmp/this_is_a_prove_that_deploy_release_task_by_procfile diff --git a/config/initializers/constant_value.rb b/config/initializers/constant_value.rb new file mode 100644 index 0000000..0f38094 --- /dev/null +++ b/config/initializers/constant_value.rb @@ -0,0 +1,28 @@ +module Vault + class ConstantValue + class << self + def class_name_to_csv_filepath_map + { + 'ImportService::OnSheet::Star' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/basic_attributes/stars.csv') + ), + 'ImportService::OnSheet::Title' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/products/titles.csv') + ), + 'ImportService::OnSheet::Platform' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/basic_attributes/platforms.csv') + ), + 'ImportService::OnSheet::GssSectionHqCharacter' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/gss_hq_characters_section/web_format_data.csv') + ), + 'ImportService::OnSheet::GssSectionCity' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/gss_cities_section/web_format_data.csv') + ), + 'ImportService::OnSheet::GssCharacter' => Rails.root.join( + Rails.root.join('db/csv_on_sheet/gss_character/web_format_data.csv') + ) + } + end + end + end +end