我正在尝试使用git在我的远程服务器中部署我的本地代码.
所以这就是我在我的本地文件夹mywebsite /中所做的:
git init
git add .
git commit -m "Initial commit"
Run Code Online (Sandbox Code Playgroud)
然后,在我的Web服务器上:
mkdir ~/public_html/myrepo.git
cd myrepo.git
git init --bare
Run Code Online (Sandbox Code Playgroud)
然后,在我的本地文件夹mywebsite /:
git remote add remote_mywebsite ssh://user@domain.com:port/~/public_html/myrepo.git
git push remote_mywebsite master
Run Code Online (Sandbox Code Playgroud)
结果如下:
Counting objects: 89, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (89/89), 61.94 KiB, done.
Total 89 (delta 2), reused 0 (delta 0)
To ssh://user@domain.com:8943/~/public_html/myrepo.git
* [new branch] master -> master
git pull …Run Code Online (Sandbox Code Playgroud) 我正在设计一个用于聊天对话的表格。而不是创建 2 个表:Conversation 和 Message。我只设计了 1 个表:Conversation and use JSONBfield for Message。
你们看看这张照片:
这个数据库结构解决方案是好是坏?如果情况不好,是否还有其他解决方案适合我?