1

When I run craft serve and it serves the web pages on 8000 port.

Is there any setting where I can change the port so I can run the server on 3000 Port or something?

1 Answer 1

2

If that port is blocked you can specify a port by running:

$ craft serve --port 8080

Source

So just use:

craft serve --port 3000
1
  • Maybe someone else can improve this answer by specifying how to make the change permanent. I tried to update the .env file, but that alone wasn't enough; and I'm new to masonite
    – Yoseph
    Sep 22, 2022 at 19:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.