There are several steps missing from the golang Templ documentation when installing the command line tools on Mac.
The following are the walk-through steps you'll want to take so you can run templ generate
from the mac command line
<!-- | |
Since the markup IS the application state, using data-* attributes to keep track of some specifics would be handy. | |
Luckily, HTMX is brutally easy to extend, so we can do that in no time! | |
--> | |
<article class="message task" | |
th:id="'task'+${task.id}" | |
th:data-task="${task.id}" | |
th:data-status="${task.status.id}" | |
th:hx-put="@{/task/{id}(id=${task.id})}" | |
hx-ext="hx-dataset-include" |
There are several steps missing from the golang Templ documentation when installing the command line tools on Mac.
The following are the walk-through steps you'll want to take so you can run templ generate
from the mac command line
μ€νλ§ λΆνΈμμλ μ ν리μΌμ΄μ
μμ νμν μμ±μ "μ ν리μΌμ΄μ
ꡬμ±νμΌ" application.yml
(νΉμ applicatoin.properties
) μ μμ±νμ¬ νμ©ν©λλ€.
Note
|
λ°μ΄ν°κ΅¬μ‘°λ₯Ό κ³μΈ΅νμΌλ‘ ννν μ μμ΄μ κ°μΈμ μΌλ‘ |
κ°λ° λ¨κ³μμ νμ΄μ§ μ²λ¦¬ λ± μλ λ°μ΄ν°κ° νμν κ²½μ°κ° λλ¬ μλ€. μ΄ λ Flyway
μμ μ 곡νλ Repeatable migration
μ νμ©ν΄ μλ λ°μ΄ν°λ₯Ό κ΄λ¦¬νλ©΄ μ΄λ€ μ μ΄ νΈν μ§ κ·Έλ¦¬κ³ μ μν μ μ 무μμ΄ μλ μ§ μμ보μ.
Repeatable migrations have a description and a checksum, but no version. Instead of being run just once, they are (re-)applied every time their checksum changes.
Repeatable migration
μ κ°μ₯ ν° νΉμ§μ checksum
κ° (= λ³κ²½ μ¬λΆ 체ν¬νλ κ°) μ΄ λ³κ²½λ κ²½μ° μ¬λ¬ λ² migration
μ΄ μ μ©λλ€λ μ μ΄λ€. SQL-based migration
μμ Repeatable migration
μ μ¬μ©νκΈ° μν΄μλ R__{description}.sql
μ κ°μ νμΌμ μμ±νλλ°, μ΄λ―Έ migration
μ²λ¦¬λ νμΌμ μμ νλ©΄ checksum
κ°μ΄ λ³κ²½ λλ©΄μ ν΄λΉ νμΌμ λ΄μ©μ΄ λ€μ migration
μ²λ¦¬ λμμ΄ λλ€λ κ²μ΄λ€.
μμ κ°μ νΉμ§μΌλ‘ λ³λμ λ²μ μ 보λ₯Ό λ°λ‘ κ΄λ¦¬νμ§ μλλ€.
μλ λ°μ΄ν°λ₯Ό κ΄λ¦¬ν λ Versioned migration
λ³΄λ€ Repeatable migration
μ μ¬μ©νλ©΄ νΈλ¦¬ν μ΄μ λ μμμ μΈκΈν νΉμ§μμ μ°Ύμ μ μλ€. Versioned migration
μ λ²μ , μ¦ νΉμ μμ μ μν μ 보λ₯Ό κ°μ§κ³ μκ³ λ°λΌμ λ± ν λ²λ§ migration
μ²λ¦¬κ° λλ€. λ°λΌμ μλ λ°μ΄ν°λ₯Ό Versioned migration
μΌλ‘ κ΄λ¦¬νλ©΄ μλ λ°μ΄ν°μ μΆκ° λ° μμ μ κ³μ ν΄μ νμΌμ μμ±ν΄μ λμν΄μΌ νλ€.
package gunlee.demo.fiber; | |
import org.junit.jupiter.api.Test; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.lang.management.ManagementFactory; | |
import java.lang.management.ThreadInfo; | |
import java.lang.management.ThreadMXBean; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script> | |
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
<title>Alpine and axios</title> | |
</head> |
CATF44LT7C-eyJsaWNlbnNlSWQiOiJDQVRGNDRMVDdDIiwibGljZW5zZWVOYW1lIjoiVmxhZGlzbGF2IEtvdmFsZW5rbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEQiIsI
With GitHub Actions, a workflow can publish artifacts, typically logs or binaries. As of early 2020, the life time of an artifact is hard-coded to 90 days (this may change in the future). After 90 days, an artifact is automatically deleted. But, in the meantime, artifacts for a repository may accumulate and generate mega-bytes or even giga-bytes of data files.
It is unclear if there is a size limit for the total accumulated size of artifacts for a public repository. But GitHub cannot reasonably let multi-giga-bytes of artifacts data accumulate without doing anything. So, if your workflows regularly produce large artifacts (such as "nightly build" procedures for instance), it is wise to cleanup and delete older artifacts without waiting for the 90 days limit.
Using the Web page for the "Actions" of a repository, it is possible to browse old workflow runs and manually delete artifacts. But the procedure is slow and tedious. It is fine to delete one selected artifact. It is not for a regular cleanup. We need