CodeIgniter Forums
how Run Ci port 8080 on real host - 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: how Run Ci port 8080 on real host (/showthread.php?tid=78652)



how Run Ci port 8080 on real host - paliz - 02-20-2021

in local host i can run this script php spark serve then ci fire  but  on real host 

how can run php spark serve 
env file in local host 

PHP Code:
CI_ENVIRONMENT development


#app.baseURL = 'http://localhost:8080/' 

in real host env file

PHP Code:
CI_ENVIRONMENT production


#app.baseURL = 'http://domain:8080/' 



i skipt some settings  i have a  c-panel


RE: how Run Ci port 8080 on real host - iRedds - 02-20-2021

spark serve not for work on a production server.
It is for local development only.
What you are trying to do wrong.

https://www.php.net/manual/en/features.commandline.webserver.php

Warning This web server is designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.


RE: how Run Ci port 8080 on real host - paliz - 02-21-2021

(02-20-2021, 09:22 PM)iRedds Wrote: spark serve not for work on a production server.
It is for local development only.
What you are trying to do wrong.

https://www.php.net/manual/en/features.commandline.webserver.php

Warning This web server is designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.

 What should i do 
to run app on  host?!


RE: how Run Ci port 8080 on real host - iRedds - 02-21-2021

If you have cPanel, then, as far as I know, you should already have an environment for work (web server, php, ...)


RE: how Run Ci port 8080 on real host - paliz - 02-22-2021

(02-21-2021, 03:11 PM)iRedds Wrote: If you have cPanel, then, as far as I know, you should already have an environment for work (web server, php, ...)

you don't see problem program work corectlly when  url is like that http:localhost:8080 how run it this port it with out that  it gose to http:/localhost/public then    middelweare are not working at this mode  i m so confused 

my app is restfull api  i have angular too 


should i change htaccess file to get what i want  ??????????????????????????????????????