应用部署数据库支持问候 [英] App deployment Database support regards
问题描述
我无法在sqlite数据库中运行部署在python中的webapp。
I cant able to run my webapp deployed in python in sqlite database.
我收到内部服务器错误的错误。请查看并更新部署的修改..我是否也想将sqlite.exe导入容器中...请更新相同内容以便我可以完成执行
I am getting error as internal server error.Please look into that and update the modifications to deploy..Do I wanted to import sqlite.exe also into the container..Please update the same so I can make my execution done
推荐答案
您能否与我们分享您收到的http错误代码?如果你也可以包含http_substatus代码也会有所帮助。
Can you please share the http error code with us that you are receiving? It would also be helpful if you could include the http_substatus code as well.
关于容器中的sqllite,下面是一个应该有效的dockerfile示例。
In regards to sqllite in your container, the below is a dockerfile example that should work.
FROM ubuntu:trusty
RUN sudo apt-get -y update
RUN sudo apt-get -y upgrade
RUN sudo apt-get install -y sqlite3 libsqlite3-dev
RUN mkdir /db
RUN /usr/bin/sqlite3 /db/test.db
CMD /bin/bash
要在您的操作系统中保存db文件,可以使用下面的内容。
To persist the db file inside your OS, something such as below should work.
docker run -it -v /home/dbfolder/:/db imagename
请注意,保留数据可能会出现在性能成本高。
Do note that persistaning your data might come at a heavy performance cost.
这篇关于应用部署数据库支持问候的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!