debian/bullseye
|
Last change
on this file since 5d20157 was ec9e811, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago |
|
Logs upload is now working
Signed-off-by: Joachim Langenbach <joachim.langenbach@…>
|
-
Property mode
set to
100755
|
|
File size:
998 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | DIR=`dirname "$0"`
|
|---|
| 4 | SRC_GEN="${DIR}/../src-gen"
|
|---|
| 5 | TARGET="${SRC_GEN}/openapi_server/"
|
|---|
| 6 |
|
|---|
| 7 | echo "Cleaning directory"
|
|---|
| 8 | rm -R "${SRC_GEN}"
|
|---|
| 9 |
|
|---|
| 10 | echo "Preparing symlinks"
|
|---|
| 11 | mkdir -p "${TARGET}"
|
|---|
| 12 | cd "${TARGET}"
|
|---|
| 13 | if [ ! -L server_impl ]; then
|
|---|
| 14 | ln -s ../../src/server_impl/
|
|---|
| 15 | fi
|
|---|
| 16 |
|
|---|
| 17 | #echo "Copying static files"
|
|---|
| 18 | #cp -a ../../src/templates ./
|
|---|
| 19 | #cp -a ../../src/static ./
|
|---|
| 20 | mkdir -p static/css/
|
|---|
| 21 | mkdir -p static/js/
|
|---|
| 22 | mkdir -p static/resources/
|
|---|
| 23 | cp -a ../../../common/css/* static/css/
|
|---|
| 24 | cp -a ../../../common/js/* static/js/
|
|---|
| 25 | cp -a ../../../common/resources/* static/resources/
|
|---|
| 26 | cp -a ../../../common/icon/* static/resources/
|
|---|
| 27 |
|
|---|
| 28 | echo "Generating backend and client API code"
|
|---|
| 29 | cd ../../
|
|---|
| 30 | # backend
|
|---|
| 31 | codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
|
|---|
| 32 | # client
|
|---|
| 33 | #codegen/openapi-generator-cli generate -i openapi.yaml -g javascript -o src-gen/openapi_server/static/
|
|---|
| 34 | #rm -R src-gen/openapi_server/static/.openapi*
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | cd src-gen/
|
|---|
| 38 | tox > /tmp/openapi_tox.log
|
|---|
| 39 | python3 -m openapi_server
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.