Skip to content

Commit

Permalink
fix: Fix hostinger deployment pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
  • Loading branch information
Souptik2001 committed Dec 1, 2024
1 parent 74d38fb commit 266b6a4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .bin/deploy-hostinger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ git checkout $BUILT_BRANCH || git checkout -b $BUILT_BRANCH
mkdir $HOME/hostinger-backup

# Backup the required three folders.
cp -r ./.git $HOME/hostinger-backup
cp -r ./backend/plugins $HOME/hostinger-backup
cp -r ./backend/themes $HOME/hostinger-backup

# Clean up the entire directory.
rm -rf *

# Copy Git folder.
cp -r $HOME/hostinger-backup/.git .
# Clean up the entire directory, except .git.
for dir in ./*; do
[ "$dir" = ".git" ] && continue
rm -rf "$dir"
done

# Copy Plugins
cp -r $HOME/hostinger-backup/plugins .
Expand Down

0 comments on commit 266b6a4

Please sign in to comment.