Skip to content

Commit

Permalink
Add simple deployments script
Browse files Browse the repository at this point in the history
  • Loading branch information
heimdallrj committed Jun 4, 2017
1 parent b41ede3 commit 400cea9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ npm-debug.log
.env
composer.lock
.DS_Store
.scripts/deploy.sh
29 changes: 29 additions & 0 deletions .scripts/deploy.sh.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
PUBLIC_KEY_PATH=
USERNAME=
ENV=dev
if [ $ENV = "dev" ]; then
HOST=
else
HOST=
fi

cd ..
sftp -i ${PUBLIC_KEY_PATH} ${USERNAME}@${HOST} <<EOF
pwd
cd /var/www/public
put *.*
put -r app
put -r config
put -r database
put -r public
put -r resources
put -r routes
EOF

ssh -i ${PUBLIC_KEY_PATH} ${USERNAME}@${HOST} <<EOF
cd /var/www/public
# rm -rf vendor
# composer install
pwd
EOF

0 comments on commit 400cea9

Please sign in to comment.