Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.31 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.31 KB

a People Performance system

build status pipeline status

How to Start (or Restart) Development?

Traditionally, you would run bin/setup, but the following steps will get you started more quickly.

bin/rails db:migrate
RAILS_ENV=development bin/rails db:fixtures:load
bin/rails server # login as [email protected] / pp_rocks

Development Notes

How to Import the Database

mysql -u root
DROP DATABASE thape_pp_dev;
CREATE DATABASE thape_pp_dev character set UTF8mb4 collate utf8mb4_0900_ai_ci;
\q
gunzip < mysql_pp_db.sql.gz | mysql -u root thape_pp_dev

Debugging SCSS

Set shakapacker.yml hmr to true.

---
hmr: true

Why should always include "stimulus"?

With webpack 5, the loading sequence is important.

How to debug in VSCode?

Install Ruby LSP by Shopify and VSCode rdbg Ruby Debugger by KoichiSasada.

Ensure that only one version of the debug gem is installed as a default gem. If not, uninstall it first:

gem uninstall -i /opt/homebrew/Cellar/ruby/3.2.2/lib/ruby/gems/3.2.0 debug
gem install debug --default