• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
spark does not actually start the server with the requested port

#1
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
Reply

#2
Hi!

Try to start server without char "="!

php spark serve --host 8081
Reply

#3
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 
Reply

#4
Thumbs Up 
That is embarrassing. Thanks for catching that. Appreciated.

Oscar
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.