Difference between revisions of "Running PartKeepr from GIT"
From PartKeepr Wiki
(Created page with "You can run PartKeepr from the GIT repository. = Requirements = * PHP 5.6 or 7.0 * [https://getcomposer.org/download/ composer] = Initial setup = <pre> git clone https://g...") |
m (mark supported php versions) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
= Requirements = | = Requirements = | ||
− | * PHP | + | * PHP 7.0 or 7.1 |
* [https://getcomposer.org/download/ composer] | * [https://getcomposer.org/download/ composer] | ||
Line 28: | Line 28: | ||
</pre> | </pre> | ||
− | Now re-run setup. | + | Now re-run '''setup''' or use the snippet below. |
+ | |||
+ | Please note that if you use '''APCu''', you might need to restart your web server to clear the APCu cache. | ||
+ | |||
+ | == Console commands == | ||
+ | |||
+ | Here are the console commands to run the PartKeepr update process without having to re-run setup manually. Note that you need to have [https://www.phing.info/ phing] installed. | ||
+ | |||
+ | <pre> | ||
+ | php app/console cache:clear --env=prod # Clears the production cache | ||
+ | php app/console doctrine:migrations:migrate --no-interaction # Executes the database migrations | ||
+ | php app/console doctrine:schema:update --force # Updates the database schema | ||
+ | |||
+ | phing # Builds all required files and warms up the cache | ||
+ | php app/console partkeepr:cron:run # Runs all crons | ||
+ | </pre> |
Latest revision as of 13:44, 3 March 2022
You can run PartKeepr from the GIT repository.
Requirements
- PHP 7.0 or 7.1
- composer
Initial setup
git clone https://github.com/partkeepr/PartKeepr.git # clones PartKeepr in the PartKeepr subdirectory. cd PartKeepr cp app/config/parameters.php.dist app/config/parameters.php # copies the default parameters to ensure composer can run. composer install # Installs all PartKeepr requirements
Now open the setup by opening web/setup and run it.
Updating
git pull # Updates PartKeepr to the latest GIT version cp app/config/parameters.php app/config/parameters.old.php # Make a backup of the old parameters.php file cp app/config/parameters.php.dist app/config/parameters.php # Use the parameters.php.dist file to ensure all settings are present rm -rf app/cache/* # Ensures all cached configurations are cleared composer install # Installs latest packages cp app/config/parameters.old.php app/config/parameters.php # Restores the parameters.php backup
Now re-run setup or use the snippet below.
Please note that if you use APCu, you might need to restart your web server to clear the APCu cache.
Console commands
Here are the console commands to run the PartKeepr update process without having to re-run setup manually. Note that you need to have phing installed.
php app/console cache:clear --env=prod # Clears the production cache php app/console doctrine:migrations:migrate --no-interaction # Executes the database migrations php app/console doctrine:schema:update --force # Updates the database schema phing # Builds all required files and warms up the cache php app/console partkeepr:cron:run # Runs all crons