vjm / grunt-foreman

Run foreman start like a boss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grunt-foreman NPM Module NPM Module

Usage

Use as such, if your procfile is called Procfile and you don't need anything else:

grunt.loadNpmTasks("grunt-foreman");
grunt.registerTask("serve", "foreman");

Optionally, you can add configuration (by target, dev as default) for one, many or any of:

  • one or more env files
  • a Procfile
  • the port to use
grunt.initConfig({
    foreman: {
        dev: {
            env: [ "development.env", "application.env" ],
            procfile: "Procfile.dev",
            port: 7000
        },
        production: {
            env: [ "application.env" ],
            procfile: "Procfile.dev",
            port: 9000
        }
    }
});

N.B. grunt.loadNpmTasks must be after grunt.initConfig.

About

Run foreman start like a boss


Languages

Language:JavaScript 100.0%