Skip to content

Commit

Permalink
goodfork
Browse files Browse the repository at this point in the history
  • Loading branch information
yomero243 committed Dec 4, 2024
1 parent 2e0a1f5 commit 1036ebc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .cpanel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1036ebc

Please sign in to comment.