Welcome Guest, Not a member yet? Register   Sign In
docs: Deployment to Shared Hosting Services
#1

The following section has been added in the in-progress User Guide.

https://codeigniter4.github.io/CodeIgnit...g-services

Any comments, or Pull Requests to improve it are welcome.
Reply
#2

(02-21-2024, 06:01 PM)kenjis Wrote: The following section has been added in the in-progress User Guide.

https://codeigniter4.github.io/CodeIgnit...g-services

Any comments, or Pull Requests to improve it are welcome.

The instructions on this thread are still valid with 4.4.6? I dont see
PHP Code:
$pathsPath FCPATH '../example.com/app/Config/Paths.php'
anywhere in public/index.php
Reply
#3

(This post was last modified: 03-20-2024, 04:01 PM by kenjis.)

https://github.com/codeigniter4/CodeIgni...ex.php#L34

It seems it changed in v4.2.0:
https://github.com/codeigniter4/CodeIgni...6a43582b59
Reply
#4

@kenjis,

Just a note on this, I change the public to public_html in my development system while coding,
If you do this you also need to edit the spark file and change public to public_html or spark will not work.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

@InsiteFX Why?

If you change the location of "app" folder, you need to edit the spark file.

PHP Code:
// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
require FCPATH '../app/Config/Paths.php';
// ^^^ Change this line if you move your application folder 

But there is no "public" in the spark file.
https://github.com/codeigniter4/CodeIgni...elop/spark
Reply
#6

spark file.
If I change public to public_html spark will not work, this is the only change I make is to public.
-----------------------------------------------------------------------------|
PHP Code:
// Path to the front controller
define('FCPATH'__DIR__ DIRECTORY_SEPARATOR 'public' DIRECTORY_SEPARATOR); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#7

Oh, I overlooked the line! Yes, there is "public".
https://github.com/codeigniter4/CodeIgni.../spark#L53
Reply




Theme © iAndrew 2016 - Forum software by © MyBB