feat(elixir): add docker deployment

This commit is contained in:
Schuwi
2025-09-14 21:01:04 +02:00
parent 02521f9c6d
commit 280caad641
6 changed files with 335 additions and 3 deletions

View File

@@ -22,14 +22,13 @@ import "phoenix_html"
// Establish Phoenix Socket and LiveView configuration.
import {Socket} from "phoenix"
import {LiveSocket} from "phoenix_live_view"
import {hooks as colocatedHooks} from "phoenix-colocated/components_elixir"
import topbar from "../vendor/topbar"
const csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
const liveSocket = new LiveSocket("/live", Socket, {
longPollFallbackMs: 2500,
params: {_csrf_token: csrfToken},
hooks: {...colocatedHooks},
hooks: {},
})
// Show progress bar on live navigation and form submits