Skip to content

Laravel Valet like service for Vue CLI projects #1390

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
morrislaptop opened this issue May 29, 2018 · 5 comments
Closed

Laravel Valet like service for Vue CLI projects #1390

morrislaptop opened this issue May 29, 2018 · 5 comments

Comments

@morrislaptop
Copy link
Contributor

What problem does this feature solve?

  • Avoid having to manually start serve for each project
  • Add the ability to share sites using local tunnels
  • Having developer friendly test sites using like my-project.test instead of localhost:8080

What does the proposed API look like?

A single node service which would handle all requests. This service would spin up the dev servers on demand and then proxy requests to each dev server based on the domain name.

If the feature is deemed worthwhile by the community, I'm happy to help start putting this together :)

@yyx990803
Copy link
Member

This has to be a separate project rather than something provided by vue-cli. Maybe @adamwathan will be interested? ;)

@morrislaptop
Copy link
Contributor Author

@yyx990803 what about as part of ui?
@adamwathan what are your thoughts?

@morrislaptop
Copy link
Contributor Author

morrislaptop commented May 31, 2018

@yyx990803 @adamwathan

I've created a Laravel Valet custom driver which does this - https://github.com/morrislaptop/WebpackDevServerValetDriver

For each domain name, it spins up a webpack dev server on a unique port according to the domain name provided.

For example a request to my-project.test would spin up a server at http://localhost:1032 and then proxy other requests to this server.

Should be good to go once #1421 is released.

@yyx990803
Copy link
Member

That sounds pretty neat for Laravel users!

@morrislaptop
Copy link
Contributor Author

Not just Laravel users! Valet is pretty general purpose, but it suffers the same fate as Laravel Mix, which is also a very good general purpose tool...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants