简体   繁体   English

使用我自己的 MySQL 服务器将我的 Flask 应用程序部署到 Heroku

[英]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.

相关问题 我想将Mysql作为数据库部署我的Rails应用程序。 我想使用免费的heroku服务器。 此免费服务器有哪些限制? - I want to deploy my rails app with Mysql as database. I want to go with free heroku server. what are the limitations of this free server? 如何实现我自己的mysql服务器接口? - How to implement my own mysql server interface? 如何在我自己的Tomcat服务器上部署Broadleaf演示? - How to deploy the broadleaf demo on my own Tomcat server? 使用ClearDB插件将使用MySQL的rails应用程序部署到Heroku - Deploy a rails app using MySQL to Heroku using ClearDB addon 尝试 npm 运行迁移以部署我的应用程序时 heroku 出错 - Error on heroku when trying to npm run migrate to deploy my app 如何使用 MySQL 数据库在 Heroku 上部署 Go 服务器? - How to deploy Go server on Heroku with a MySQL database? 我无法通过RoR访问自己的MySQL服务器? - I can not get access to my own MySQL server via RoR? 将node.js与mysql集成需要我自己的服务器? - Integrating node.js with mysql requires my own server? 使用mysql数据库将Ruby on Rails应用程序部署到Heroku - Deploy Ruby on Rails App to Heroku with mysql database 如何将带有 mysql 的 php 应用程序部署到 heroku? - how to deploy a php app with mysql to heroku?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM