prepare deploy
All checks were successful
/ ls (pull_request) Successful in 29s
/ ls (push) Successful in 30s
/ ls (release) Successful in 5s

This commit is contained in:
lubiana 2024-06-22 21:47:23 +02:00
parent ec46bf2884
commit c252b8420b
No known key found for this signature in database
5 changed files with 48 additions and 17 deletions

View file

@ -1,10 +1,12 @@
#!/usr/bin/env sh
if [ -d "futter-app" ]; then
rm -rf futtern-app
TARGETDIR='futtern-app'
if [ -d $TARGETDIR ]; then
rm -rf $TARGETDIR
fi
mkdir futtern-app
cd futtern-app || return
mkdir $TARGETDIR
cd $TARGETDIR || return
pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env etc"
@ -24,3 +26,5 @@ chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H $HOST >> ~/.ssh/known_hosts
# SCP files to the remote host
rsync -avz --delete public/ ${USERNAME}@${HOST}:${TARGETDIR}