~evanj/cms

f6b34727319a96a1aa216bfa8e86a9766bbfb250 — Evan M Jones 4 months ago 6c030a0
Feat(TODO+.build.yml): More TODOs. Only deploy if current ref is latest
on branch.
2 files changed, 8 insertions(+), 8 deletions(-)

M .build.yml
M TODO
M .build.yml => .build.yml +2 -2
@@ 12,12 12,12 @@ tasks:
      cd cms
      touch .env
      make setup gen build
      if [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/master | grep X" | wc -l` == "1" ]; then
      if [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/master | head -n 1 | grep X" | wc -l` == "1" ]; then
        echo "deploying to production"
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms/cms 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart cms"'
      elif [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/tip | grep X" | wc -l` == "1" ]; then
      elif [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/tip | head -n 1 | grep X" | wc -l` == "1" ]; then
        echo "deploying to tip"
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms.tip/cms 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms.tip

M TODO => TODO +6 -6
@@ 1,11 1,11 @@
[todo]
Cache listicles.
X Pagination for content search.
X Pagination for content type search.
X Make sure full space copy hasn't broke.
X Make sure reference and reference list autocomplete search has not broke.
X ID ~things~ that appear in HTML name attributes, id attributes, etc. {{.Name}} -> {{ .ID }}
X Content updates with ref is locking tables and updates fail.
Provide documentation on *.html pages for how to interact with cms.evanjon.es
  via cURL.
Complete e2e and integration testing.
Provide a Go API under git.sr.ht/~evanj/cms (move from
  git.sr.ht/~evanj/evanjon.es) and provide more fine-grained ways to interact
  with content/contentype search APIs.

[revisit] 
Fullscreen takeover for html/markdown editors.