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?

Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52

1 Answers1

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
asynts
  • 2,213
  • 2
  • 21
  • 35
  • 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 '22 at 19:20