Yarn serve in php container for vue project created with vue/cli


#1

Hi,

I am new to docker and devilbox. i have created a project with vue cli by executing command in php container. when i run yarn serve

It seems you are running Vue CLI inside a container.
Access the dev server via http://localhost:<your container’s external mapped port>/

i want to access this dev server where can i find my external mapped port?

Regards


#2

A few general readings about it are here:

When yarn serve opens up a separate port for your project, you can transform your project vhost into a reverse proxy and have it automatically routed to the web server and still use the vhost name as well as https features.

I hope I understood your question correctly.

There is also a fully featured example with NodeJS, which you could probably almost apply 1 to 1 for your example: https://devilbox.readthedocs.io/en/latest/examples/setup-reverse-proxy-nodejs.html

Let me know if this helps or If I understood it wrong.


#3

Thanks , Relevant topics helped me alot.


#4

Are you willing to paste a little yarn hello world snippet here including what port yarn serve will make it listen. I can that add it to the documentation for others to find.