gpt4 book ai didi

python - 如何使用centos在VPS上上传django应用程序

转载 作者:太空宇宙 更新时间:2023-11-03 16:40:20 24 4
gpt4 key购买 nike

我是 Django 新手,最近我用 sqlite 完成了我的第一个 Django 应用程序。现在我有一个带有 linux cent 操作系统的 VPS。请给我一个如何将我的应用程序上传到我的 VPS 的完整结构的来源。(我没有服务器方面的经验,所以给我一些服务器配置的信息会很好)

最佳答案

广泛的问题简答。

Setup git in your project and create the bare repo in your VPS and using that as remote url and push your local changes and and make clone for prod and dev.

VPS:

git init --bare your-project

your remote url is user@<ip>:/home/user/your-project

本地:

git remote add origin user@<ip>:/home/user/your-project

push using git push origin master

关于python - 如何使用centos在VPS上上传django应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36856288/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com