will this workaround work....?
This commit is contained in:
@@ -9,3 +9,5 @@ services:
|
|||||||
volumes: # when pushing to server, remove the first dot here in front of /mnt
|
volumes: # when pushing to server, remove the first dot here in front of /mnt
|
||||||
- /mnt/ssd/ds_ftp/classla_OS2022:/usr/src/app/classla_OS2022
|
- /mnt/ssd/ds_ftp/classla_OS2022:/usr/src/app/classla_OS2022
|
||||||
- ./swagger_server/classla/classla_resources:/root/classla_resources
|
- ./swagger_server/classla/classla_resources:/root/classla_resources
|
||||||
|
environment:
|
||||||
|
- PYTHONUNBUFFERED=1
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import connexion
|
|||||||
|
|
||||||
from swagger_server import encoder
|
from swagger_server import encoder
|
||||||
|
|
||||||
|
print("We in main file")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Starting app1")
|
print("Starting app1")
|
||||||
@@ -16,8 +17,6 @@ def main():
|
|||||||
app.run(port=8080)
|
app.run(port=8080)
|
||||||
|
|
||||||
|
|
||||||
# need to comment out the bottom part and add this because
|
if __name__ == '__main__':
|
||||||
# for some reason it won't run otherwise on the docker on the server
|
print("Starting main function")
|
||||||
main()
|
main()
|
||||||
# if __name__ == '__main__':
|
|
||||||
# main()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user