Automate loopback application version numbering and delopment to production server
npm install grunt-loopback-deploy> Automate loopback application version numbering and deployment to production server
~0.4.5If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install grunt-loopback-deploy --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-loopback-deploy');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
deploy: {
options: {
deploySLCPMServerURL: 'http://your.production.server:slc pm port/repo'
}
},
});
`$3
#### options.deploySLCPMServerURL
Type:
String
Default value: none
Example: 'http://www.myproductionserver.com:7777/repo'This is the url of the server you are deploying to. See Loopback SLC PM Docs to learn how to setup your server to receive deployment packages
$3
Once you install the npm package and edit your Gruntfile you can simply type
`shell
grunt deploy:patch
``