About this training

We are here to help

Having troubles making a decision about this training ?

contact_support Ask us anything

If you need to add actions following a deploy, you can add a bash script to the root of your PrestaShop.

This script must be in

/vol/site/current

And have the precise name:

.post-deploy.sh


Its content is that of a classic bash script and must start with #!/bin/bash

#!/bin/bash

# This script is empty at the moment
# Add your code here


Example for a .post-deploy.sh script that builds a javascript application:

#!/bin/bash

npm install
npm run build

 

 

 

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