Navigation Menu

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

Support running pub serve on directories other than "web/" #15924

Closed
munificent opened this issue Jan 6, 2014 · 9 comments
Closed

Support running pub serve on directories other than "web/" #15924

munificent opened this issue Jan 6, 2014 · 9 comments
Assignees
Labels
type-enhancement A request for a change that isn't a bug

Comments

@munificent
Copy link
Member

This is the pub serve dual of #­14673.

@nex3
Copy link
Member

nex3 commented Jan 7, 2014

It's possible this should work somewhat differently for "pub serve" than for "pub build". For building the primary use-case for building a specific directory is to take the output -- for example, an example app -- and put it on a server somewhere. This means that saying e.g. "pub build example/foo" makes a lot of sense. For "pub serve", though, it may be more useful to just have the server always make the examples and tests accessible. You'd still run "pub serve" without any arguments, but then you could go to "http://localhost/_pkg/example/foo" (or something, "_pkg" is just a strawman).

@munificent
Copy link
Member Author

Marked this as blocking #15859.

@munificent
Copy link
Member Author

Unmarked this as blocking #15859.

@munificent
Copy link
Member Author

Marked this as blocking #15830.

@munificent
Copy link
Member Author

Added DevStory label.

@nex3
Copy link
Member

nex3 commented Feb 13, 2014

Set owner to @nex3.
Added Started label.

@keertip
Copy link
Contributor

keertip commented Feb 17, 2014

Marked this as blocking #16889.

@nex3
Copy link
Member

nex3 commented Feb 19, 2014

Support for this has been added in r32818. "pub serve" can now serve files from multiple directories, each on a different port. By default it serves "web" on port 8080 and "test" on port 8081; additional command-line arguments can be passed to cause it to serve other directories. For example, "pub serve example/foo" will serve example/foo on port 8082 (8080 and 8081 are always reserved for "web" and "test").


Added Fixed label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#805.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants