Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. const SshPipe = require('./ssh-pipe.js');
  2. ( async ( )=>{
  3. const production = new SshPipe({
  4. connent: {
  5. host: '******',
  6. user: '****',
  7. pass: '****',
  8. agent: process.env.SSH_AUTH_SOCK,
  9. agentForward: true,
  10. baseDir: '/home/var/www'
  11. },
  12. env: { BRANCH: "master" }
  13. })
  14.  
  15. production.description;
  16. await production.start({
  17. [
  18. {
  19. title:"git load.",
  20. step:[
  21. "git fetch",
  22. "git checkout .",
  23. "git checkout $BRANCH",
  24. "git clean -fd",
  25. "git pull",
  26. "git reset --hard origin/$BRANCH"
  27. ]
  28. }
  29. ]
  30. });
  31. production.Report
  32.  
  33. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement