Skip to content

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

Closed
@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

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions