Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.93 KB

readme.md

File metadata and controls

61 lines (45 loc) · 1.93 KB

PrestaShop Open Source

Build

This repository aims to improve the overall maturity of the PrestaShop open source project.

It contains:

Rendering the site locally

Option 1: Using Hugo installed on your system

  1. Clone the repository somewhere on your system:
    git clone --recurse-submodules https://github.com/PrestaShop/open-source.git
    

Note normal cloning will not work. You must recurse the submodules or hugo will not understand shortcodes and you will see errors such as: failed to extract shortcode: template for shortcode "children" not found

  1. Switch to the open-source directory:

    cd open-source
    
  2. Install Hugo (optional if already installed):

    ./bin/installHugo.sh
    
  3. Launch Hugo:

    hugo server
    

Option 2: Using Docker (no need to install Hugo locally)

If you do not want to install Hugo on your system, you can use the provided docker-compose.yml file to run the site in a container.

  1. Clone the repository (with submodules):

    git clone --recurse-submodules https://github.com/PrestaShop/open-source.git
  2. Switch to the open-source directory:

    cd open-source
  3. Use the following command to start the Hugo server:

    docker-compose up

    By default, the server will run on port 1313. You can specify a different port by setting the HUGO_SERVER_PORT environment variable before running the command. For example:

    HUGO_SERVER_PORT=3000 docker-compose up
  4. Access the site in your browser at http://localhost:<PORT>, replacing <PORT> with the port you defined (default is 1313).