使用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 masterDo 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 changeWe 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更多推荐
发布评论