CodeIgniter Forums
spark does not actually start the server with the requested port - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: spark does not actually start the server with the requested port (/showthread.php?tid=76096)



spark does not actually start the server with the requested port - ohpreis - 04-14-2020

Hi,

Not sure if this topic belongs in this discussion. If not, please let me know; gently.

Anyways, I ran into this small challenge using CodeIgniter 4.

When I start my app using spark and specifying a port, it does not use the port number I requested.

e.g.
Code:
php spark serve --host=8081

The above command starts the server using port :8080 anyways.

Not sure what I'm missing. Any insight is appreciated.

Thanks

Oscar


RE: spark does not actually start the server with the requested port - 5flex - 04-28-2020

Hi!

Try to start server without char "="!

php spark serve --host 8081


RE: spark does not actually start the server with the requested port - kilishan - 04-29-2020

That's because you're using the host flag instead of the port flag.

PHP Code:
php spark serve -port 8081 

Also - you can use the help command to get more info about the commands:

PHP Code:
php spark help serve 



RE: spark does not actually start the server with the requested port - ohpreis - 04-29-2020

That is embarrassing. Thanks for catching that. Appreciated.

Oscar