launch/debug config
All checks were successful
/ Checkout (push) Successful in 1m18s

This commit is contained in:
david 2024-07-22 21:47:06 +02:00
parent effeef97b8
commit 363dfaa7d3
7 changed files with 23 additions and 6 deletions

View file

1
.gitignore vendored
View file

@ -40,3 +40,4 @@
/node_modules /node_modules
/.irbrc_history /.irbrc_history
.~lock* .~lock*
.build_version

5
.vscode/launch.json vendored
View file

@ -6,8 +6,9 @@
"configurations": [ "configurations": [
{ {
"type": "ruby_lsp", "type": "ruby_lsp",
"name": "Attach debugger", "name": "Debug server",
"request": "attach" "request": "attach",
"preLaunchTask": "dev"
}, },
{ {
"type": "ruby_lsp", "type": "ruby_lsp",

11
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "dev",
"label": "dev",
"isBackground": true
}
]
}

View file

@ -1,4 +1,7 @@
<h1>Dashboard</h1> <h1>A11yDive</h1>
<h2>Dashboard</h1>
<p> <p>
<i class="bi bi-journal-text"></i> <i class="bi bi-journal-text"></i>
<%= Report.count %> <%= Report.count %>

View file

@ -8,4 +8,4 @@ fi
# Default to port 3000 if not specified # Default to port 3000 if not specified
export PORT="${PORT:-3000}" export PORT="${PORT:-3000}"
exec foreman start -f Procfile.dev "$@" exec foreman start -f /app/Procfile.dev "$@"

View file

@ -35,6 +35,7 @@ module A11yist
# #
config.time_zone = "Europe/Zurich" config.time_zone = "Europe/Zurich"
# config.eager_load_paths << Rails.root.join("extras") # config.eager_load_paths << Rails.root.join("extras")
config.build_version = (File.read(Rails.root.join(".build_version")) || "-").freeze build_version_file = Rails.root.join(".build_version")
config.build_version = (File.exist?(build_version_file) && File.read(build_version_file) || "dev").freeze
end end
end end