使用Dokku部署Flask应用程序(Deploying Flask app using Dokku)

编程入门 行业动态 更新时间:2024-10-26 09:27:47
使用Dokku部署Flask应用程序(Deploying Flask app using Dokku)

我有一个使用dokku部署的Flask应用程序,现在我想修改代码并重新部署它。 我在网上找到的所有文件都说我需要使用下面的命令添加git remote

git remote add dokku dokku@mydomain.com:test git push dokku master

我是否需要指定domain.com:test作为我的Flask应用程序的域名,或者它应该是git repo?

I have a Flask app deployed using dokku and now I want to modify the code and redeploy it. All the documents I found online says that I need to add git remote using below command

git remote add dokku dokku@mydomain.com:test git push dokku master

Do i need to specify the domain.com:test as the domain name of my Flask application or it should be the git repo?

最满意答案

我们需要添加如下的远程,然后推送更改。

git remote add dokku dokku@<IP of server where app is hosted>:<App Domain Name>

然后使用git remote -v验证remote是否已添加

git push dokku master -- to publish the change

We need to add remote as below and then push the changes.

git remote add dokku dokku@<IP of server where app is hosted>:<App Domain Name>

Then verify remote is added using git remote -v

git push dokku master -- to publish the change

更多推荐

本文发布于:2023-08-03 15:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1393314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Flask   Dokku   Deploying   app

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!