Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix userguide config path #4057

Merged
merged 1 commit into from
Jan 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions user_guide_src/source/general/managing_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ Renaming or Relocating the Application Directory
If you would like to rename your application directory or even move
it to a different location on your server, other than your project root, open
your main **app/Config/Paths.php** and set a *full server path* in the
``$appDirectory`` variable (at about line 38)::
``$appDirectory`` variable (at about line 45)::

public $appDirectory = '/path/to/your/application';

You will need to modify two additional files in your project root, so that
they can find the ``Paths`` configuration file:

- ``/spark`` runs command line apps; the path is specified on or about line 36::
- ``/spark`` runs command line apps; the path is specified on or about line 44::

require 'app/Config/Paths.php';
require realpath('app/Config/Paths.php') ?: 'app/Config/Paths.php';
// ^^^ Change this if you move your application folder


- ``/public/index.php`` is the front controller for your webapp; the config
path is specified on or about line 16::
path is specified on or about line 28::

$pathsPath = FCPATH . '../app/Config/Paths.php';
require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder


Expand Down