如何使用 cent os 在 VPS 上上传 django 应用程序
how to upload django app on VPS with cent os
我是 Django 的新手,最近我用 sqlite 完成了我的第一个 Django 应用程序。
现在我有一个 VPS 和 linux 美分 os。
请给我一个关于如何将我的应用程序上传到我的 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
我是 Django 的新手,最近我用 sqlite 完成了我的第一个 Django 应用程序。 现在我有一个 VPS 和 linux 美分 os。 请给我一个关于如何将我的应用程序上传到我的 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