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
/.irbrc_history
.~lock*
.build_version

5
.vscode/launch.json vendored
View file

@ -6,8 +6,9 @@
"configurations": [
{
"type": "ruby_lsp",
"name": "Attach debugger",
"request": "attach"
"name": "Debug server",
"request": "attach",
"preLaunchTask": "dev"
},
{
"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>
<i class="bi bi-journal-text"></i>
<%= Report.count %>
@ -13,4 +16,4 @@
<i class="bi bi-check2"></i>
<%= Check.count %>
<%= link_to Check.model_name.human(count: Check.count), :checks %>
</p>
</p>

View file

@ -8,4 +8,4 @@ fi
# Default to port 3000 if not specified
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.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