I'm testing upgrading from CLI. I've scripted the upgrade from Git procedure except this one. It will close the gap.
Back to question: how should the paths be set up for CLI to work? I followed the docs and the sample [tt]config.dist.xml[/tt] and made some attempts but still get error:
<title>MODX Revolution Core Finder</title>
<h2>Your MODX_CORE_PATH is invalid</h2>
...
<label>MODX_CORE_PATH</label>
<input type="text" name="core_path" id="core_path" value="/srv/www/sites/site_domain/public/core/" size="80" maxlength="255" />
<span class="field_error">ERROR: Your MODX_CORE_PATH is invalid; please specify the correct path in the field above and click Submit.</span>
Unfortunately, the error comes from a HTML page, which is dumped to screen. This is not CLI friendly. Anyway, the error comes from the core path, which is set correctly IMO.
I use the following folder structure:
- [tt]/srv/www/modx/dev/[/tt] -- the MODX snapshot from Git (in this case my dev workspace)
- [tt]/srv/www/sites/site_domain/public/[/tt] -- the site files and folders
The site folder contains all required files hardlinked from Git snapshot plus any other folders and files like [tt]assets/[/tt]. This setup works without problems and allows for easy upgrades via shell script and browser. However, it apparently fails in case of CLI upgrade, because of paths.
My [tt]config.xml[/tt] contains:
<!-- Paths for your MODX installation -->
<mgr_path>/srv/www/modx/dev/manager/</mgr_path>
<mgr_url>/manager/</mgr_url>
<connectors_path>/srv/www/modx/dev/connectors/</connectors_path>
<connectors_url>/connectors/</connectors_url>
<web_path>/srv/www/modx/dev/</web_path>
<web_url>/</web_url>
<assets_path>/srv/www/sites/site_domain/public/assets/</assets_path>
<assets_url>/assets/</assets_url>
<core_path>/srv/www/modx/dev/core/</core_path>
<processors_path>/srv/www/modx/dev/core/model/modx/processors/</processors_path>
<!-- Paths for the default web context that is installed. -->
<context_mgr_path>/srv/www/sites/site_domain/public/manager/</context_mgr_path>
<context_mgr_url>/manager/</context_mgr_url>
<context_connectors_path>/srv/www/sites/site_domain/public/connectors/</context_connectors_path>
<context_connectors_url>/connectors/</context_connectors_url>
<context_web_path>/srv/www/sites/site_domain/public/</context_web_path>
<context_web_url>/</context_web_url>
The path values are taken from the [tt]config.core.php[/tt] for that site. I also tried paths for site folder (ie. the same as in 'context' section) in the first ('MODX') section, but got the same problem.
How should I set them up to make CLI upgrade work?
[ed. note: gadamiak last edited this post 12 years, 7 months ago.]