Skip to content

LesterTheTester/grunt-services

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-services

Start and Stop database services

Getting Started

This plugin requires Grunt.

If 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:

npm install grunt-services --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-services');

The Tasks

All tasks are plain tasks, which means you have to include them in grunt.registerTask() statements or call them directly from command line. The available tasks are:

  • startRedis Start Redis database.
  • startMongo Start Mongodb database.
  • startPostgres Start Postgres database.
  • stopRedis Stop Redis database.
  • stopMongo Stop Mongodb database.
  • stopPostgres Stop Postgres database.

Sample Setup

Create start and stop aliases for starting and stoping the services:

grunt.initConfig({ /* ... */ });

grunt.registerTask('start', 'Start all required services', ['startRedis', 'startMongo']);
grunt.registerTask('stop', 'Stop all services', ['stopRedis', 'stopMongo']);

Release History

  • v0.0.1, 15 Feb 2014
    • Big Bang

License

Copyright (c) 2014 Thanasis Polychronakis. Licensed under the MIT license.

About

Start and Stop database services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published