This commit is contained in:
parent
effeef97b8
commit
363dfaa7d3
7 changed files with 23 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -40,3 +40,4 @@
|
|||
/node_modules
|
||||
/.irbrc_history
|
||||
.~lock*
|
||||
.build_version
|
||||
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
|
|
@ -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
11
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "dev",
|
||||
"label": "dev",
|
||||
"isBackground": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
<h1>Dashboard</h1>
|
||||
<h1>A11yDive</h1>
|
||||
|
||||
<h2>Dashboard</h1>
|
||||
|
||||
<p>
|
||||
<i class="bi bi-journal-text"></i>
|
||||
<%= Report.count %>
|
||||
|
|
|
|||
2
bin/dev
2
bin/dev
|
|
@ -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 "$@"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue