Skip to content

Commit

Permalink
Deployment via SFTP
Browse files Browse the repository at this point in the history
  • Loading branch information
rockhopsoft committed Sep 30, 2020
1 parent 071a9f5 commit e8aa4e0
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 7 deletions.
25 changes: 18 additions & 7 deletions src/homestead/samples/repopush.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
#!/bin/bash
set -x

DIR="survloop"
# Directory where all your repositories are located:
REPODIR="~/repos"

rm -r ./homestead/code/$DIR/vendor/rockhopsoft/survloop/src
cp -r ./repos/survloop/src ./homestead/code/survloop/vendor/rockhopsoft/survloop/
# Directory which syncs with the virtual server
HOMEDIR="~/homestead/code"

rm -r ./homestead/code/$DIR/vendor/rockhopsoft/survloop-libraries/src
cp -r ./repos/survloop-libraries/src ./homestead/code/survloop/vendor/rockhopsoft/survloop-libraries/
# Installation sub-directory within synched virtual server
INSTDIR="survloop"

rm -r ./homestead/code/$DIR/app/Models/*

cd ./homestead/code/survloop/
rm -r $HOMEDIR/$INSTDIR/vendor/rockhopsoft/survloop/src
cp -r $REPODIR/survloop/src $HOMEDIR/$INSTDIR/vendor/rockhopsoft/survloop/

rm -r $HOMEDIR/$INSTDIR/vendor/rockhopsoft/survloop-libraries/src
cp -r $REPODIR/survloop-libraries/src $HOMEDIR/$INSTDIR/vendor/rockhopsoft/survloop-libraries/

rm -r $HOMEDIR/$INSTDIR/app/Models/*

cd $HOMEDIR/$INSTDIR/
composer dump-autoload
php artisan optimize:clear
echo "0" | php artisan vendor:publish --force
curl http://$DIR/css-reload
24 changes: 24 additions & 0 deletions src/homestead/samples/repos-make-zips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -x

# Directory where all your repositories are located:
REPODIR="~/repos"

# Package name of Survloop extension
REPONAME="survlooporg"

cd $REPODIR
rm -r zipz-repos
mkdir zipz-repos

cd $REPODIR/survloop
tar -czvf survloop.tar.gz ./src
mv survloop.tar.gz ../zipz-repos/survloop.tar.gz

cd $REPODIR/survloop-libraries
tar -czvf survloop-libraries.tar.gz ./src
mv survloop-libraries.tar.gz ../zipz-repos/survloop-libraries.tar.gz

cd $REPODIR/$REPONAME
tar -czvf $REPONAME.tar.gz ./src
mv $REPONAME.tar.gz ../zipz-repos/$REPONAME.tar.gz
1 change: 1 addition & 0 deletions src/homestead/survloop-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,4 @@ fi
#chown -R www-data:www-data storage bootstrap/cache resources/views database app/Models
php artisan optimize:clear
composer dump-autoload
curl http://$DIR.local/css-reload
1 change: 1 addition & 0 deletions src/ubuntu20/survloop/02-survloop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ fi
chown -R www-data:www-data storage bootstrap/cache resources/views database app/Models
php artisan optimize:clear
composer dump-autoload --optimize
curl http://$DIR/css-reload
echo ''
echo '--'
echo '----'
Expand Down
1 change: 1 addition & 0 deletions src/ubuntu20/survloop/samples/deploy-update-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ cd /var/www/$DIR
php artisan optimize:clear
composer dump-autoload
echo "0" | php artisan vendor:publish --force
curl http://$DIR/css-reload

set +x

Expand Down

0 comments on commit e8aa4e0

Please sign in to comment.