GithubHelp home page GithubHelp logo

seigieu / autoupgrade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prestashop/autoupgrade

0.0 0.0 0.0 2.8 MB

Upgrade module for PrestaShop

Home Page: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/#1-click-upgrade-module

License: Academic Free License v3.0

Shell 0.11% JavaScript 2.89% PHP 94.90% CSS 0.13% Smarty 0.13% Dockerfile 0.04% Twig 1.80%

autoupgrade's Introduction

1-Click Upgrade

PHP tests Upgrades Latest Stable Version Total Downloads GitHub license

About

Upgrade to the latest version of PrestaShop in a few clicks, thanks to this automated method. This module is compatible with all PrestaShop 1.6 & 1.7.

Prerequisites

  • PrestaShop 1.6 or 1.7
  • PHP 5.6+

For older PHP versions, see previous releases of the module (ex. v1.6.8). Note they are unsupported and we strongly recommend you to upgrade your PHP version.

Installation

All versions can be found in the releases list.

Create a module from source code

  • Clone (git clone https://github.com/PrestaShop/autoupgrade.git) or download the source code. You can also download a release Source code (ex. v4.4.1). If you download a source code archive, you need extract the file and rename the extracted folder to autoupgrade
  • Enter into folder autoupgrade and run the command composer install (composer).
  • Create a new zip file of autoupgrade folder
  • Now you can upload into your module pages

Running an upgrade on PrestaShop

Upgrading a shop can be done via:

  • the configuration page of the module (access from your BO module page)
  • in command line by calling the file cli-upgrade.php

Command line parameters

Upgrade can be automated by calling cli-upgrade.php. The following parameters are mandatory:

  • --dir: Tells where the admin directory is.
  • --channel: Selects what upgrade to run (minor, major etc.)
  • --action: Advanced users only. Sets the step you want to start from (Default: UpgradeNow, other values available).
$ php cli-upgrade.php --dir=admin-dev --channel=major

Rollback a shop

If an error occurs during the upgrade process, the rollback will be suggested. In case you lost the page from your backoffice, note it can be triggered via CLI.

Command line parameters

Rollback can be automated by calling cli-rollback.php. The following parameters are mandatory:

  • --dir: Tells where the admin directory is.
  • --backup: Select the backup to restore (this can be found in your folder <admin>/autoupgrade/backup/)
$ php cli-rollback.php  --dir=admin-dev --backup=V1.7.5.1_20190502-191341-22e883bd

Documentation

Documentation is hosted on devdocs.prestashop.com.

Contributing

PrestaShop modules are open source extensions to the PrestaShop e-commerce platform. Everyone is welcome and even encouraged to contribute with their own improvements!

Just make sure to follow our contribution guidelines.

Reporting issues

You can report issues with this module in the main PrestaShop repository. Click here to report an issue.

License

This module is released under the Academic Free License 3.0

autoupgrade's People

Contributors

aleeks avatar alexeven avatar atomiix avatar boubkerbribri avatar dependabot[bot] avatar djfm avatar eternoendless avatar groussac avatar hlavtox avatar jf-viguier avatar jnadaud avatar jolelievre avatar julienbourdeau avatar julievrz avatar kpodemski avatar mathiasreker avatar matks avatar matthieu-rolland avatar maximebiloe avatar pierrerambaud avatar prestaedit avatar prestaworks avatar progi1984 avatar quetzacoalt91 avatar rsoulard-prolaser avatar sowbiba avatar tchauviere avatar tegbessou avatar touxten avatar xborderie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.