Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow debug: option to be specified as (integer) port number. #73

Closed
wants to merge 1 commit into from

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

@drawveloper
Copy link
Collaborator

+1!

@drawveloper
Copy link
Collaborator

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