Skip to content

build app in Gulp listening in port 8080 #1814

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

Closed
aabm00 opened this issue Apr 22, 2016 · 3 comments
Closed

build app in Gulp listening in port 8080 #1814

aabm00 opened this issue Apr 22, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@aabm00
Copy link

aabm00 commented Apr 22, 2016

Item Version
generator-angular-fullstack 3.6
Node 4.2.3
npm 3.7.5
Operating System Windows 7
Item Answer
Transpiler TypeScript
Markup HTML
CSS CSS
Router ui-router
Build Tool Grunt / Gulp
Client Tests Jasmine
DB MongoDB
Auth Y
socket.io Y

Hi

I have been trying the new version 3.6 with tthe two build tools Grunt and Gulp.

GRUNT
With Grunt everything is fine

  • The local app preview --> OK
  • The build app preview --> OK

GULP

  • The local app preview --> OK
  • The build app preview --> NO OK

In the preview of the build app I got the next error:

.........
[10:47:01] Finished 'start:client' after 168 ms
[10:47:01] Finished 'serve:dist' after 1 min

events.js:141
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE 0.0.0.0:8080
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at Server._listen2 (net.js:1234 :14)
at listen (net.js:1270:10)
at net.js:1379:9
at doNTCallback3 (node.js:452:9)
at process._tickCallback (node.js:358:17)
[nodemon] app crashed - waiting for file changes before starting...

The app normally listen in the port 9000 but with the build app in Gulp listen in 8080. The EADDRINUSE error says that the port was in use, but it wasn't.

captura

@aabm00
Copy link
Author

aabm00 commented Apr 22, 2016

Hi
There was a process taking the port 8080. Killing it the build app worked fine.

The locals app use the port 9000 in both, Gulp and Grunt but the build app in Grunt uses the 9000 port and Gulp the 8080. What is the reason to use different ports?

In the current state of the generator, which is the most reliable Build Tool for starting a project, Grunt or Gulp?

Thanks

@Awk34 Awk34 added the bug label Apr 22, 2016
@Awk34
Copy link
Member

Awk34 commented Apr 22, 2016

Personally I prefer Gulp, but it's up to you. The port we use for the serve:dist setup should be the same in both files, though. I'll make sure to change it.

@Awk34 Awk34 self-assigned this Apr 22, 2016
@aabm00
Copy link
Author

aabm00 commented Apr 22, 2016

Thanks. your are doing a great job !!!!

@Awk34 Awk34 added this to the Soon milestone May 13, 2016
@Awk34 Awk34 closed this as completed Jun 21, 2016
@Awk34 Awk34 reopened this Jun 21, 2016
@Awk34 Awk34 closed this as completed in aac61b2 Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants