prepare deploy
This commit is contained in:
parent
ec46bf2884
commit
c252b8420b
5 changed files with 48 additions and 17 deletions
|
@ -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}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue