CodeIgniter Forums
Spark Serve Options - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Spark Serve Options (/showthread.php?tid=73827)



Spark Serve Options - paulkd - 06-08-2019

Hi All,

I've installed CI4 appstarter using composer and want to run on port 80.

I ran php spark serve and noticed that any --options were being ignored.

Looking at Serve.php and CLI.php can someone explain how I should set required options?


All the best.


RE: Spark Serve Options - InsiteFX - 06-09-2019

It's in the CodeIgniter 4 User Guide.

Code:
php spark serve --port=8081

Change port to your port.


RE: Spark Serve Options - InsiteFX - 06-09-2019

It's in the CodeIgniter 4 User Guide.

Code:
php spark serve --port=8081

Change port to your port=80


RE: Spark Serve Options - paulkd - 06-22-2019

(06-09-2019, 03:10 AM)InsiteFX Wrote: It's in the CodeIgniter 4 User Guide.

Code:
php spark serve --port=8081

Change port to your port=80

Sorry for delay in replying (thought I'd subscribed).

I know that you can specify the port, what I meant to say was that I think it is being ignored.


RE: Spark Serve Options - BlindPenguin - 10-18-2019

I stumbled over the same issue. The solution is quite simple: Remove the "=". So if anyone else has this problem, the solution is:

Code:
php spark --port 80

Same with any other option. At least in Windows it's working this way. Not sure yet about Linux.


RE: Spark Serve Options - hans.ratzinger - 09-06-2020

(10-18-2019, 08:26 AM)BlindPenguin Wrote: I stumbled over the same issue. The solution is quite simple: Remove the "=". So if anyone else has this problem, the solution is:

Code:
php spark --port 80

Same with any other option. At least in Windows it's working this way. Not sure yet about Linux.
Yes its working also in Linux, no = between!
php spark serve --port 8083


RE: Spark Serve Options - okiewardoyo - 02-03-2024

In my case, using
Code:
php spark serve --port=8081
doesnt work.
Deleting "=" sign make it works.
[Image: php%20spark.png]


RE: Spark Serve Options - kenjis - 02-03-2024

See https://www.codeigniter.com/user_guide/installation/running.html#local-development-server