Skip to content

Port number shouldn't be hardcoded in template files #957

@arnauldvm

Description

@arnauldvm

Gruntfile.js

See https://github.com/DaftMonk/generator-angular-fullstack/blob/0fee45d47ec174fe8bdfafe4b5e9498ab3140bfe/app/templates/Gruntfile.js#L251 :

        // opens browser on initial server start
        nodemon.on('config:update', function () {
          setTimeout(function () {
            require('open')('http://localhost:=8080/debug?port=5858');
          }, 500);
        });

karma.conf.js

See https://github.com/DaftMonk/generator-angular-fullstack/blob/0fee45d47ec174fe8bdfafe4b5e9498ab3140bfe/app/templates/karma.conf.js#L55

// web server port
port: 8080,

Especially since 8080 is often used by other software, e.g. local proxy.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions