发表于: 2018-04-12 19:53:30
5 988
今天完成的事情:
安装ant:https://www.cnblogs.com/music378/p/7095500.html
安装Maven:
https://www.cnblogs.com/HendSame-JMZ/p/6122188.html
[root@LiLong ~]# vi test.sh
A 1234.html
A 1234.txt
Checked out revision 38.
Deploy.sh内容如下:
#!bin/sh
cd /data/svnrepossvn co svn://39.107.239.240/data/svnrepos . --username aiqingcheng --password aiqingcheng
如果是svn update就是这样的问题
[root@LiLong ~]# sh ./test.sh
svn: E205000: Try 'svn help' for more info
svn: E205000: 'svn://39.107.239.240/data/svnrepos' is not a local path
不是本地
我把内容换了
#!bin/sh
cd /data/svnrepos
svn update nginx . --username aiqingcheng --password aiqingcheng
结果:
[root@LiLong ~]# vi test1.sh
[root@LiLong ~]# sh ./test1.sh
Updating 'nginx':
At revision 38.
Updating '.':
At revision 38.
Summary of updates:
Updated 'nginx' to r38.
Updated '.' to r38.
Summary of conflicts:
Skipped paths: 1
[root@LiLong ~]#
不知道是不是更新了??/
post-commit内容如下:
#!/bin/sh
username=aiqingcheng
password=aiqingcheng
SVN_PATH=/usr/bin/svn
WEB_PATH=/data/svnrepos
LOG_PATH=/data/svnrepos/code_deploy_log
echo "Code Deployed By at `date`" >> $LOG
exit 0
遇到的问题:
下载的nginx,编码安装和其他安装(yum)的选择有什么区别吗
https://blog.csdn.net/ityang_/article/details/70145956
https://www.zhihu.com/question/28659211
突然发现
我啥时候安装的!!
收获:
使用Jenkins进行持续集成
https://www.liaoxuefeng.com/article/001463233913442cdb2d1bd1b1b42e3b0b29eb1ba736c5e000
在linux服务器上部署的时候脚本应该怎么编写
https://zhidao.baidu.com/question/566377668034259604.html
Linux---CentOS 定时运行脚本配置
https://blog.csdn.net/netdxy/article/details/50562864
一步步教你如何编写Shell脚本
http://www.jb51.net/article/110331.htm
前段时间无意间发现以前op师兄们写的日报(01号师兄不愧是01,神!!)
http://bbs.ptteng.com/forum.php?mod=viewthread&tid=7354
http://bbs.ptteng.com/forum.php?mod=viewthread&tid=7860
http://bbs.ptteng.com/forum.php?mod=viewthread&tid=8047
Jenkins加Shell实现最简单的持续部署:
https://blog.csdn.net/neutrojan/article/details/41854883
定时器(脚本定时执行):
https://blog.csdn.net/u012453843/article/details/53153288
https://blog.csdn.net/feng973/article/details/52311639
服务器定时执行计划任务,定时访问页面(windows/linux):
http://www.jb51.net/article/96624.htm
linux下执行.sh文件的方法和语法:
https://blog.csdn.net/ljp812184246/article/details/52585650
明天计划的事情:
我感觉网站更新这块过不了,明天还得继续。。就剩下这一块了!!
评论