gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/tests/e2e-start-app.sh

913 B

  1. #!/bin/sh
  2. # start-app.sh <tree> <port> <dir> : runs the app on <dir>/storage with a session made inside <dir>; prints sid to <dir>/sid
  3. tree=$1; port=$2; dir=$3
  4. sid=$(head -c16 /dev/urandom | od -An -tx1 | tr -d ' \n')
  5. h=$(printf %s "$sid" | sha256sum | cut -d' ' -f1)
  6. now=$(date +%s)000
  7. mkdir -p $dir/sessions
  8. printf '{"created":%s,"data":{"tag":"j3tag"},"handled":[],"id":"%s","seen":%s,"user":{"id":"0mufikk6hj1u"}}' $now $sid $now > $dir/sessions/$h
  9. chmod 600 $dir/sessions/$h
  10. echo $sid > $dir/sid
  11. cd $tree
  12. TICKETS_PORT=$port TICKETS_STORAGE=$dir/storage/mpackdb TICKETS_SESSIONS=$dir/sessions TICKETS_ATTACHMENTS=$dir/storage/attachments \
  13. IDENT_URL=http://127.0.0.1:9 IDENT_EXCHANGE_URL=http://127.0.0.1:9 TICKETS_PUBLIC_URL=http://127.0.0.1:$port TICKETS_CREATOR_IDENTITY= TICKETS_WATCH=0 IDENT_API_KEY=pk_j3 IDENT_API_SECRET= \
  14. nohup ./bin/hybriel project.hl > $dir/server.log 2>&1 &
  15. echo $! > $dir/pid

Branches

Latest commits

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre