About this training

We are here to help

Having troubles making a decision about this training ?

contact_support Ask us anything

On PS Hosting you can run scripts after specific actions. This is the case for deployment and clone.

 

POST Deploy

In your repository you can add a new file called post-deploy.sh which will be run after each deployment and duplication. This file may include a shell script as a PHP script.

You need to place this script at the root of the PrestaShop folder

/vol/site/current/post-deploy.sh

 

For a shell script

#!/bin/bash

# my shell script

For a PHP script

#!/usr/bin/env php

# my php script

 

⚠️ This article has been translated by a machine translation program.