diff --git a/.env.example b/.env.example index e37cca7f9..627d1398c 100644 --- a/.env.example +++ b/.env.example @@ -22,6 +22,10 @@ SOLID_CABLE_POLLING=0.1.seconds # /case page. FORCE_SSL=false +# This makes Quepid show detailed error messages in the UI instead of a generic 500 page, +# useful while testing a deployment in Production. +QUEPID_CONSIDER_ALL_REQUESTS_LOCAL=false + DB_HOST=mysql DB_USERNAME=root DB_PASSWORD=password diff --git a/Gemfile b/Gemfile index a39beede0..bd596d75c 100644 --- a/Gemfile +++ b/Gemfile @@ -91,3 +91,5 @@ group :test do gem 'capybara' gem 'selenium-webdriver' end + +gem 'mini_racer', '~> 0.16.0' diff --git a/Gemfile.lock b/Gemfile.lock index bd3b1e0c5..cd81fc391 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -249,6 +249,8 @@ GEM childprocess (~> 5.0) letter_opener (1.10.0) launchy (>= 2.2, < 4) + libv8-node (18.19.0.0-x86_64-darwin) + libv8-node (18.19.0.0-x86_64-linux) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -267,6 +269,8 @@ GEM memory_profiler (1.1.0) mini_histogram (0.3.1) mini_mime (1.1.5) + mini_racer (0.16.0) + libv8-node (~> 18.19.0.0) minitest (5.25.4) minitest-reporters (1.7.1) ansi @@ -575,6 +579,7 @@ DEPENDENCIES listen (~> 3.3) local_time memory_profiler + mini_racer (~> 0.16.0) minitest-reporters (>= 0.5.0) mission_control-jobs (~> 0.5.0) mocha (~> 2.7) diff --git a/README.md b/README.md index 4bf856edc..2a21d83b8 100644 --- a/README.md +++ b/README.md @@ -272,9 +272,9 @@ bin/docker r bundle exec derailed bundle:mem ### Debugging JS -While running the application, you can debug the javascript using your favorite tool, the way you've always done it. +While running the application, you can debug the JavaScript using your favorite tool, the way you've always done it. -The javascript files will be concatenated into one file, using the rails asset pipeline. +The JavaScript files will be concatenated into one file, using the rails asset pipeline. You can turn that off by toggling the following flag in `config/environments/development.rb`: diff --git a/app.json b/app.json index a5dc73496..8690206d1 100644 --- a/app.json +++ b/app.json @@ -90,5 +90,6 @@ } }, "scripts": { + "postdeploy": "bundle exec rake db:migrate" } } diff --git a/app/assets/javascripts/components/case_listing/case_listing.html b/app/assets/javascripts/components/case_listing/case_listing.html index 6d34ae3cb..84c8ade75 100644 --- a/app/assets/javascripts/components/case_listing/case_listing.html +++ b/app/assets/javascripts/components/case_listing/case_listing.html @@ -11,6 +11,8 @@ ng-click="ctrl.goToCase()" > {{ ctrl.thisCase.caseName }} + +
diff --git a/app/assets/javascripts/components/export_case/_modal.html b/app/assets/javascripts/components/export_case/_modal.html index 5cc671f43..b6ad3b2d8 100644 --- a/app/assets/javascripts/components/export_case/_modal.html +++ b/app/assets/javascripts/components/export_case/_modal.html @@ -29,7 +29,7 @@