From f74415217cbe1bfb179ae6c5035981f63562dbe7 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Fri, 15 Mar 2024 22:28:54 +0100 Subject: [PATCH] Rename to Dawarich --- .env.development | 6 +++--- .env.test | 6 +++--- Makefile | 26 +++++++++++++------------- README.md | 6 +++--- app/views/home/index.html.erb | 4 ++-- app/views/layouts/application.html.erb | 2 +- app/views/shared/_navbar.html.erb | 2 +- config/application.rb | 2 +- config/cable.yml | 2 +- config/database.yml | 6 +++--- config/environments/production.rb | 2 +- docker-compose.yml | 20 ++++++++++---------- package-lock.json | 2 +- 13 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.env.development b/.env.development index 32251e17..d01eb0be 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ -DATABASE_HOST=solo_customer_template_db +DATABASE_HOST=dawarich_db DATABASE_USERNAME=postgres DATABASE_PASSWORD=password -DATABASE_NAME=solo_customer_template_development +DATABASE_NAME=dawarich_development DATABASE_PORT=5432 -REDIS_URL=redis://solo_customer_template_redis:6379/1 +REDIS_URL=redis://dawarich_redis:6379/1 diff --git a/.env.test b/.env.test index a2b4a93c..b5e9d76e 100644 --- a/.env.test +++ b/.env.test @@ -1,6 +1,6 @@ -DATABASE_HOST=solo_customer_template_db +DATABASE_HOST=dawarich_db DATABASE_USERNAME=postgres DATABASE_PASSWORD=password -DATABASE_NAME=solo_customer_template_test +DATABASE_NAME=dawarich_test DATABASE_PORT=5432 -REDIS_URL=redis://solo_customer_template_redis:6379/1 +REDIS_URL=redis://dawarich_redis:6379/1 diff --git a/Makefile b/Makefile index b8b3ff53..0e44ff05 100644 --- a/Makefile +++ b/Makefile @@ -10,31 +10,31 @@ setup: make setup_db bundle: - docker-compose run --rm solo_customer_template_app gem install bundler --conservative - docker-compose run --rm solo_customer_template_app bundle install + docker-compose run --rm dawarich_app gem install bundler --conservative + docker-compose run --rm dawarich_app bundle install setup_frontend: npm i daisyui setup_db: - docker-compose run --rm solo_customer_template_app rails db:create db:migrate db:seed + docker-compose run --rm dawarich_app rails db:create db:migrate db:seed migrate: - docker-compose run --rm solo_customer_template_app bin/rails db:migrate + docker-compose run --rm dawarich_app bin/rails db:migrate rollback: - docker-compose run --rm solo_customer_template_app bin/rails db:rollback + docker-compose run --rm dawarich_app bin/rails db:rollback # Setting up the project # Debugging the project bash: - docker-compose run --rm solo_customer_template_app sh + docker-compose run --rm dawarich_app sh console: - docker-compose run --rm solo_customer_template_app bundle exec rails c + docker-compose run --rm dawarich_app bundle exec rails c debug: - docker attach solo_customer_template_app + docker attach dawarich_app # Debugging the project @@ -43,7 +43,7 @@ start_sidekiq: docker-compose up sidekiq start: - docker-compose up -d solo_customer_template_app + docker-compose up -d dawarich_app make debug overmind: @@ -51,17 +51,17 @@ overmind: # Running the project test: - RAILS_ENV=test NODE_ENV=test docker-compose run --rm solo_customer_template_test bundle exec rspec + RAILS_ENV=test NODE_ENV=test docker-compose run --rm dawarich_test bundle exec rspec # Running tests deploy: git push dokku master unlock_deploy: - ssh dokku_frey 'dokku apps:unlock solo_customer_template' + ssh dokku_frey 'dokku apps:unlock dawarich' tail_production_log: - ssh dokku_frey 'dokku logs solo_customer_template --tail' + ssh dokku_frey 'dokku logs dawarich --tail' production_migrate: - ssh dokku_frey 'dokku run solo_customer_template bundle exec rails db:migrate' + ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate' diff --git a/README.md b/README.md index 1db6a593..7159e644 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SoloCustomerTemplate +# Dawarich This is a Rails 7.0.2.3 app template with test suite, user auth and development docker env. @@ -10,7 +10,7 @@ Run ruby rename_app.rb old_app_name new_app_name ``` -Notice, the name must be in snake_case. Default app name is `solo_customer_template`. +Notice, the name must be in snake_case. Default app name is `dawarich`. ## How to start the app locally @@ -40,7 +40,7 @@ Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55 ```json { "scripts": { - "predeploy": "dokku ps:stop solo_customer_template" + "predeploy": "dokku ps:stop dawarich" }, "formation": { "web": { diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 88e6bbfe..a6960ad4 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -3,8 +3,8 @@
-

SoloCustomerTemplate

-

The only SoloCustomerTemplate you'll ever need.

+

Dawarich

+

The only Dawarich you'll ever need.

<%= link_to 'Sign up', new_user_registration_path, class: "rounded-lg py-3 px-5 my-3 bg-blue-600 text-white block font-medium" %> <%= link_to 'Sign in', new_user_session_path, class: "rounded-lg py-3 px-5 bg-neutral text-neutral-content block font-medium" %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 97be0ffd..906cd249 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - SoloCustomerTemplate + Dawarich <%= csrf_meta_tags %> <%= csp_meta_tag %> diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 90e3bac0..8623931d 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -8,7 +8,7 @@
  • <%= link_to 'Test url', 'portfolios_url' %>
  • - <%= link_to 'SoloCustomerTemplate', root_path, class: 'btn btn-ghost normal-case text-xl'%> + <%= link_to 'Dawarich', root_path, class: 'btn btn-ghost normal-case text-xl'%>