Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var path = require('path');
- //add the config file name
- var configFile = path.resolve('./deployconfig.json');
- var config = require(configFile);
- msdeploy: {
- push: {
- options: {
- verb: 'sync',
- allowUntrusted: 'true',
- source: {
- 'contentPath': path.resolve('./dist')
- },
- dest: {
- contentPath: config.contentPath,
- wmsvc: config.serverAddress,
- userName: config.userName,
- password: config.password
- }
- }
- }
- }
- grunt.loadNpmTasks('grunt-msdeploy');
- //add task for deployment - copying the dist from local server to remote server
- grunt.registerTask('deploy', ['msdeploy:push']);
- {
- "contentPath": "c:/inetpub/wwwroot/dist",
- "serverAddress": "ec2-xx-xx-xx-x.ap-northeast-1.compute.amazonaws.com",
- "userName": "xxxxxxxxx",
- "password": "xxxxxxxxx"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement