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

lucky dev always listen on localhost:3000 on my linux laptop. #1180

Closed
zw963 opened this issue Mar 24, 2023 · 5 comments · Fixed by #1185
Closed

lucky dev always listen on localhost:3000 on my linux laptop. #1180

zw963 opened this issue Mar 24, 2023 · 5 comments · Fixed by #1185
Labels
guides:update Update docs

Comments

@zw963
Copy link
Contributor

zw963 commented Mar 24, 2023

I don't know why, when following setup in the README, but the server always listen on 3000 when run lucky dev.

In fact, i couldn't following the document in beginners tutorials too, the document said the clover project will listen on localhost:3001, but i listen on localhost:3000 too.

So, i guess maybe somewhere is misconfigured, how to figure it out?

I haven't checked the source code of how lucky dev works, is there a way to change the port to make several project can be running synchronously?

Thanks.


I found i can change config/watch.yml to achieve this, is there something wrong?

@jwoertink
Copy link
Member

It looks like when we made the change, we never updated the docs. You are correct, to change it you update the config/watch.yml or you can set the DEV_PORT ENV.

We need to update the guides to make sure this is clear 👍

@jwoertink jwoertink added the guides:update Update docs label Mar 24, 2023
@zw963
Copy link
Contributor Author

zw963 commented Mar 24, 2023

@jwoertink
Copy link
Member

I updated that.

@zw963
Copy link
Contributor Author

zw963 commented Apr 23, 2024

or you can set the DEV_PORT ENV.

Hi, find another one issue, when set DEV_PORT to 3002 in the .env, the listen port is changed. but, the happy message output when running lucky dev still told me, i am listen on 3000

🎉 App running at http://127.0.0.1:3000

@jwoertink
Copy link
Member

I opened an issue for that here luckyframework/lucky#1874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guides:update Update docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants