[英]Deploy my Flask app to Heroku using my own MySQL server
I have a project with a Flask backend and Vue frontend.我有一个带有 Flask 后端和 Vue 前端的项目。 I want to deploy it to Heroku but using my own MySQL database from my own MySQL server, without using Heroku's dynos.
我想将它部署到 Heroku,但使用我自己的 MySQL 服务器中我自己的 MySQL 数据库,而不使用 Heroku 的 dynos。
Is this possible?这可能吗?
That depends what you mean by这取决于你的意思
my own MySQL database from my own MySQL server, without using Heroku's dynos
来自我自己的 MySQL 服务器的我自己的 MySQL 数据库,不使用 Heroku 的 dynos
If your MySQL server is accessible from the Internet, sure.如果您的 MySQL 服务器可以从 Internet 访问,请确保。 Just point your application at it.
只需将您的应用程序指向它。
(Note that using one of Heroku's database addons does not mean using dynos. These services run as hosted services on the cloud, not on your dynos. JawsDB and ClearDB are both options and both have free tiers.) (注意,使用Heroku的数据库的插件之一,并不意味着使用DYNOS。这些服务作为托管服务在云不是在你的DYNOS运行。JawsDB和ClearDB都是选项,并都有免费的层次。)
If you're talking about something running inside a firewall, eg on your laptop, then this won't be possible without doing a bunch of network stuff.如果您正在谈论在防火墙内运行的某些东西,例如在您的笔记本电脑上,那么如果不做一堆网络工作,这将是不可能的。 It's possible but I strongly urge you not to do this.
这是可能的,但我强烈建议您不要这样做。 It's easy to create security issues.
很容易产生安全问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.