記錄一下使用git上傳服務器

ps

git init
git remote add origin [email protected]:****.git

服務器

/home# cd institution/
/home/institution# composer update
/home/institution# cd /etc/nginx/sites-enabled/
ls
cp menu.com institution.com #選擇一個類似網站配置進行克隆
vim institution.com
nginx -t

修改配置
wq保存並退出
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
表示修改成功

服務器

nginx -s reload #重啓服務器

ps

git add .
git commit -m''
git push

修改服務器文件權限

chmod -R 777 storage/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章