首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
WHY42
搜索
用户菜单
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁Linux:Travis使用rsync部署”︁的源代码
←
Linux:Travis使用rsync部署
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<syntaxhighlight lang="bash"> # cd blog ssh-keygen -t rsa -b 4096 -C 'blog@riguz.com' -f ./deploy_rsa travis encrypt-file deploy_rsa --add ssh-copy-id -i deploy_rsa.pub blog@riguz.com gem install travis travis login --com --github-token <token> travis encrypt-file deploy_rsa --add --com ssh-copy-id -i deploy_rsa.pub blog@riguz.com </syntaxhighlight> <pre> addons: ssh_known_hosts: 152.32.186.249 before_install: - openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in deploy_rsa.enc -out deploy_rsa -d - openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in deploy_rsa.enc -out ~/.ssh/id_rsa -d - chmod 600 ~/.ssh/id_rsa .... rsync -avz --quiet --delete $TRAVIS_BUILD_DIR/public/ blog@:152.32.186.249/var/www/blog on: </pre> [[Category:Linux/Unix]]
返回
Linux:Travis使用rsync部署
。