Blog: 2023-08-21

From razwiki
Revision as of 13:15, 21 August 2023 by Razzi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
fish $ docker run -it -p 5000:5000 \
             -e BASIC_AUTH_USERNAME=local \
             -e BASIC_AUTH_PASSWORD=local \
             -e SECRET_KEY=localsecret \
             --network slirp4netns:allow_host_loopback=true \
             -e DATABASE_URL=postgresql://pgclient:[email protected]:5432/weave \
            (last-image-built) poetry run gunicorn app -b
Counting objects: 100% (57/57), done.
Delta compression using up to 8 threads
Compressing objects: 100% (31/31), done.
Writing objects: 100% (33/33), 129.29 KiB | 8.08 MiB/s, done.
Total 33 (delta 28), reused 0 (delta 0), pack-reused 0
   f726dd1..c01fe19  main -> main
weave $ ls  LICENSE   Procfile   Vagrantfile   app.json  build/       mypy.ini       package.json  public/         pytest.ini  scripts/  src/    yarn-error.log
Dockerfile   Makefile  __pycache__/    flow-typed/  node_modules/  poetry.lock   pyproject.toml     server/   tests/  yarn.lock
weave $ vim app.json
weave $ curl 'http://localhost:5000/api/send-student-verification-email' -X POST -H 'Accept: application/json' -H 'content-type: application/json' -H 'Origin: http://localhost:5000' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"email":"[email protected]","is_personal_device":true}

Want to answer


which worked for me

Interesting about clearing terminals and using xxd to view output of this type of command