From 1036ebcc0dd123304f3fe2159afa87e2b1571be2 Mon Sep 17 00:00:00 2001 From: Gabriel Cerdio Date: Wed, 4 Dec 2024 00:38:20 -0600 Subject: [PATCH] goodfork --- .cpanel.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.cpanel.yml b/.cpanel.yml index 18e5eb9b6..daa600cfb 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -3,12 +3,17 @@ deployment: tasks: # 1. Define el directorio de despliegue - export DEPLOYPATH=/home1/annygabr/repositories/wedding-website + - export PATH=/home1/annygabr/nodevenv/repositories/wedding-website/16/bin:$PATH - # 2. Instala las dependencias con npm - - npm install + # 2. Copia archivos y directorios específicos + - /bin/cp -R css $DEPLOYPATH + - /bin/cp -R js $DEPLOYPATH + - /bin/cp -R images $DEPLOYPATH + - /bin/cp -R sass $DEPLOYPATH + - /bin/cp index.html $DEPLOYPATH + - /bin/cp package.json $DEPLOYPATH + - /bin/cp gulpfile.js $DEPLOYPATH - # 3. Ejecuta gulp para compilar los assets - - gulp - - # 4. Copia todos los archivos del proyecto al directorio de despliegue - - /bin/cp -R * $DEPLOYPATH + # 3. Instala las dependencias y compila los assets + - cd $DEPLOYPATH && /usr/local/bin/npm install + - cd $DEPLOYPATH && /usr/local/bin/node ./node_modules/.bin/gulp