Guest User

Untitled

a guest
Jan 19th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. #!/bin/bash -eo pipefail node .circleci/deploy.js internal/modules/cjs/loader.js:605
  2. throw err;
  3. ^
  4.  
  5. Error: Cannot find module '/home/circleci/project/.circleci/deploy.js'
  6. at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
  7. at Function.Module._load (internal/modules/cjs/loader.js:529:25)
  8. at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
  9. at executeUserCode (internal/bootstrap/node.js:342:17)
  10. at startExecution (internal/bootstrap/node.js:276:5)
  11. at startup (internal/bootstrap/node.js:227:5)
  12. at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) Exited with code 1
  13.  
  14. version: 2
  15. jobs:
  16. build:
  17. docker:
  18. - image: circleci/node:latest
  19. steps:
  20. - checkout
  21. - run: npm install
  22. - run: node .circleci/deploy.js
  23. - run: echo "WE'RE ONLINE"
  24.  
  25. workflows:
  26. version: 2
  27. deploy:
  28. jobs:
  29. - build:
  30. filters:
  31. branches:
  32. only:
  33. - master
  34.  
  35. var FtpDeploy = require('ftp-deploy');
  36. var ftpDeploy = new FtpDeploy();
  37.  
  38. var config = {
  39. username: process.env.USERNAME_HV,
  40. password: process.env.PASSWORD_HV,
  41. host: process.env.FTPHOST,
  42. port: 21,
  43. localRoot: __dirname + "/",
  44. remoteRoot: "/home/hiversho/public_html/gitlab-pipeline-demo/",
  45. include: ['*']
  46. }
  47.  
  48. ftpDeploy.deploy(config, function(err) {
  49. if (err) console.log(err)
  50. else console.log('finished');
  51. });
Add Comment
Please, Sign In to add comment