gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0bf3fefa0bf3fefaMission 030: edited state note labelmre0bf3fefa/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

  • 0bf3fefaMission 030: edited state note labelmre
  • 691565c6Log neutral-ticket rule checkmre
  • bc3bdecerecords: day38b live, #94 purgedmre
  • f6c5aa0dMerge main (records)mre
  • e23d42acconnect gate: wait for hydration before clicking Disconnectmre
  • a5d45d00records: D38 cause, GOmre
  • 19eeb938records: D38 gates, two day38b failuresmre
  • f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
  • 51645016Merge purge-94 (#94, identity rule)mre
  • 94d6ca2arecords: D38 startedmre
  • 9df09aacmission 029: day38b re-vendor + deploymre
  • d2834f65records: #94 backup planmre
  • 4467d8cbrecords: #94 purge readymre
  • aa2d124eREADME: the #94 purge gatemre
  • e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre
  • 3d7d89c8Record mpackdb hold until day38mre
  • f1bf7195#51 done; my subscription idmre
  • 9870b945status: #51 proof greenmre