Advertisement
Guest User

Untitled

a guest
Mar 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. var path = require('path');
  2. //add the config file name
  3. var configFile = path.resolve('./deployconfig.json');
  4. var config = require(configFile);
  5. msdeploy: {
  6. push: {
  7. options: {
  8. verb: 'sync',
  9. allowUntrusted: 'true',
  10. source: {
  11. 'contentPath': path.resolve('./dist')
  12. },
  13. dest: {
  14. contentPath: config.contentPath,
  15. wmsvc: config.serverAddress,
  16. userName: config.userName,
  17. password: config.password
  18. }
  19. }
  20. }
  21. }
  22.  
  23.  
  24. grunt.loadNpmTasks('grunt-msdeploy');
  25. //add task for deployment - copying the dist from local server to remote server
  26. grunt.registerTask('deploy', ['msdeploy:push']);
  27.  
  28. {
  29. "contentPath": "c:/inetpub/wwwroot/dist",
  30. "serverAddress": "ec2-xx-xx-xx-x.ap-northeast-1.compute.amazonaws.com",
  31. "userName": "xxxxxxxxx",
  32. "password": "xxxxxxxxx"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement