debian/bullseye
|
Last change
on this file since 5e4cb73 was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago |
|
Refactored mapservice
- mapservice is a connexion python webservice with openapi defined api
- mapservice-webclient is a angular app, consuming the openapi webservice mapservice
|
-
Property mode
set to
100755
|
|
File size:
668 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | DIR=`dirname "$0"`
|
|---|
| 4 |
|
|---|
| 5 | echo "Preparing symlinks"
|
|---|
| 6 | cd ${DIR}/../src-gen/openapi_server/
|
|---|
| 7 | if [ ! -L server_impl ]; then
|
|---|
| 8 | ln -s ../../src/server_impl/
|
|---|
| 9 | fi
|
|---|
| 10 |
|
|---|
| 11 | echo "Copying static files"
|
|---|
| 12 | cp -a ../../src/templates ./
|
|---|
| 13 | cp -a ../../src/static ./
|
|---|
| 14 | mkdir -p static/css/
|
|---|
| 15 | mkdir -p static/js/
|
|---|
| 16 | mkdir -p static/resources/
|
|---|
| 17 | cp -a ../../../common/css/* static/css/
|
|---|
| 18 | cp -a ../../../common/js/* static/js/
|
|---|
| 19 | cp -a ../../../common/resources/* static/resources/
|
|---|
| 20 | cp -a ../../../../icon/gnuboat-256-256-transparent.png static/resources/
|
|---|
| 21 |
|
|---|
| 22 | cd ../../
|
|---|
| 23 | codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
|
|---|
| 24 |
|
|---|
| 25 | cd src-gen/
|
|---|
| 26 | python3 -m openapi_server
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.