Skip to content

Conversation

@justcfx2u
Copy link
Contributor

I needed to be able to specify a custom debugging port while using grunt-express-server. This patch enables this functionality.

In addition to debug: true and debug: false, this patch will take an integer as a port number to start the node debugger on. All of these are valid examples:

    express: {
      options: {
        port: process.env.PORT || 9000
      },
      dev: {
        options: {
          script: 'server/app.js',
          debug: 5959
        }
      },
    express: {
      options: {
        port: process.env.PORT || 9000
      },
      dev: {
        options: {
          script: 'server/app.js',
          debug: false
        }
      },
    express: {
      options: {
        port: process.env.PORT || 9000
      },
      dev: {
        options: {
          script: 'server/app.js',
          debug: true
        }
      },

@consoledotblog
Copy link

+1

@vibegui
Copy link
Collaborator

vibegui commented Nov 18, 2014

+1!

@vibegui
Copy link
Collaborator

vibegui commented Nov 20, 2014

Merged into 0.5 branch, see 6515e05

@joshperry
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants