Welcome Guest, Not a member yet? Register   Sign In
how Run Ci port 8080 on real host
#1

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
Enlightenment  Is  Freedom
Reply
#2

(This post was last modified: 02-20-2021, 09:22 PM by iRedds.)

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.c...server.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.
Reply
#3

(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.c...server.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?!
Enlightenment  Is  Freedom
Reply
#4

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

(This post was last modified: 02-22-2021, 01:39 PM by paliz.)

(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  ??????????????????????????????????????
Enlightenment  Is  Freedom
Reply




Theme © iAndrew 2016 - Forum software by © MyBB