Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2.  
  3. require 'sshkit'
  4. require 'sshkit/dsl'
  5. on ['deployer@XX.79.200.XXX'] do
  6. # upload! '/home/john/Downloads/__thepact_com/__thepact_com.crt', '/home/deployer/__thepact_com.crt'
  7. # upload! '/home/john/Downloads/__thepact_com/__thepact_com.p7b', '/home/deployer/__thepact_com.p7b'
  8. upload! '/home/john/Downloads/__thepact_com/__thepact_com.ca-bundle', '/home/deployer/__thepact_com.ca-bundle'
  9.  
  10. within '/home/deployer/' do
  11. # execute 'sudo', 'mv', '/home/deployer/__thepact_com.crt', '/opt/nginx/ssl/__thepact_com.crt'
  12. # execute 'sudo', 'mv', '/home/deployer/__thepact_com.p7b', '/opt/nginx/ssl/__thepact_com.p7b'
  13. execute 'sudo', 'mv', '/home/deployer/__thepact_com.ca-bundle', '/opt/nginx/ssl/__thepact_com.ca-bundle'
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement