简体   繁体   English

如何在存储在 Github 存储库中的 Heroku 上部署 Angular-Flask-MySQL 项目

[英]How to deploy Angular-Flask-MySQL Project on Heroku which Stored in Github repo

I am currently working on a project that uses Angular as frontend framework, Flask as backend framework and MySQL as database.我目前正在开发一个项目,该项目使用Angular作为前端框架, Flask作为后端框架, MySQL作为数据库。 Furthermore, the developement of the application is completed and the source code is stored in private Github repo .此外,应用程序的开发已经完成,源代码存储在私有Github repo中。

My next step is to deploy this project on heroku server.我的下一步是在heroku服务器上部署这个项目。 After done some research l found that i have to change the database to Clear DB which is the database available in heroku.在做了一些研究后,我发现我必须将数据库更改为Clear DB ,这是 heroku 中可用的数据库。 As a newbie this is my first web app deployment to heroku server.作为一个新手,这是我第一个 web 应用程序部署到 heroku 服务器。

Is there any online source where i can refer that can fullfiill my requirement or if somebody has done this approach previousely could please list down the steps so i can follow them.有没有我可以参考的在线资源可以满足我的要求,或者如果有人以前做过这种方法,请列出这些步骤,以便我可以遵循它们。 Your help will be highly appreciated.您的帮助将不胜感激。

Thanks and best regards.谢谢和最好的问候。

I had done a project related to angular and flask.我做过一个与 angular 和 flask 相关的项目。 I faced the same issue when it comes to app deployment phase.在应用程序部署阶段,我遇到了同样的问题。

I deployed the angular app and the flask app in two separate heroku servers.我在两个单独的 heroku 服务器中部署了 angular 应用程序和 flask 应用程序。 Using this method it is easy for you to do the furthure developments of the application as well.使用这种方法,您也可以轻松地进行应用程序的进一步开发。

Following are some reliable sources you can refer,以下是一些您可以参考的可靠来源,

Deploy flask app to herokuhttps://stackabuse.com/deploying-a-flask-application-to-heroku/将 flask 应用程序部署到 herokuhttps://stackabuse.com/deploying-a-flask-application-to-heroku/

Deploy angular app to heroku https://www.javaguides.net/2020/11/how-to-deploy-angular-application-to-heroku.html?m=1 Deploy angular app to heroku https://www.javaguides.net/2020/11/how-to-deploy-angular-application-to-heroku.html?m=1

After deploy both these frameworks separately you can replace your angular api call from https://localhost:5000/api/ to https://yourbackendserver.herokuapp.com/api/ After deploy both these frameworks separately you can replace your angular api call from https://localhost:5000/api/ to https://yourbackendserver.herokuapp.com/api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM