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

Where is dist/public? #40

Closed
antonyRoberts opened this issue Apr 11, 2017 · 4 comments
Closed

Where is dist/public? #40

antonyRoberts opened this issue Apr 11, 2017 · 4 comments

Comments

@antonyRoberts
Copy link

If I build with npm run dev The program compiles and runs but there is no dist/public folder.
whereispublic
Building with ng build --prod compiles fine but still no idea where dist/public is

@antonyRoberts
Copy link
Author

This ends up happening on fix(serve): delete dist on serve and I see that you've referenced this issue, so I'll close

@DavideViolante
Copy link
Owner

When using npm run dev it execute ng serve. Since this angular/angular-cli#4293 the dist folder is automatically deleted when using ng serve and the files are being loaded from memory. Use ng build to create dist folder, then run the app using this sequence:

  1. npm run predev
  2. mongod
  3. npm start

@antonyRoberts
Copy link
Author

antonyRoberts commented Apr 11, 2017

Thanks @DavideViolante I found ng build works too, and mongo is already running as a service, would you happen to know how to change port 4200, do we have to eject ng-cli to do it?

@DavideViolante
Copy link
Owner

DavideViolante commented Apr 11, 2017

You can change the 4200 from .angular-cli.json file (see here https://github.com/angular/angular-cli/wiki/angular-cli, find port in page)
You can change the 3000 backend port from app.ts file (remember to change to proxy.conf.json too)

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

No branches or pull requests

2 participants