CodeIgniter Forums
php spark serve does not work in CI4.2.0 - 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: php spark serve does not work in CI4.2.0 (/showthread.php?tid=82079)



php spark serve does not work in CI4.2.0 - umizoomi - 06-09-2022

When I upgrade to CI4.2.0 "php spark serve" stops working and just displays a blank message. The below set of commands are in Git Bash. I first run "php spark serve" in CI4.1.9 and it works fine, then I upgrade to CI4.2.0 and "php spark serve" does not work. For reference, I have PHP 8.1.6 installed on Windows 10.

Code:
me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ php spark serve

CodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-06-09 13:49:06 UTC+00:00

CodeIgniter development server started on http://localhost:8080
Press Control-C to stop.
[Thu Jun  9 09:49:07 2022] PHP 8.1.6 Development Server (http://localhost:8080) started
[Thu Jun  9 10:01:36 2022] [::1]:59801 Accepted

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ composer update
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading codeigniter4/framework (v4.1.9 => v4.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Upgrading codeigniter4/framework (v4.1.9 => v4.2.0): Extracting archive
37 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ php spark serve

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)



RE: php spark serve does not work in CI4.2.0 - iRedds - 06-10-2022

try updating spark and public/index.php


RE: php spark serve does not work in CI4.2.0 - kenjis - 06-10-2022

Please read Upgrading guide carefully.

Upgrading from 4.1.9 to 4.2.0 — CodeIgniter 4.2.0 documentation
https://codeigniter4.github.io/userguide/installation/upgrade_420.html


RE: php spark serve does not work in CI4.2.0 - umizoomi - 06-10-2022

(06-10-2022, 12:18 AM)iRedds Wrote: try updating spark and public/index.php
Thanks! That worked