chore: add helper scripts

- Deploy (merge into production, push, composer install and npm install)
- start_vagrant (just start vagrant and browser)
- ssh_homestead (a simple ssh into homestead)
This commit is contained in:
Bruno F. Fontes 2021-04-21 08:09:53 -03:00
parent df2ac8f223
commit aa55e10e69
4 changed files with 7 additions and 7 deletions

7
.gitignore vendored
View File

@ -5,14 +5,7 @@
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
.phpunit.result.cache
mergeAndDeploy.sh
start_vagrant.sh
stop_vagrant.sh
ssh_homestead.sh

2
deploy.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
git checkout production && git merge master && git checkout - && git push origin production && ssh -A contabo -t "cd /var/www/shareit.brunofontes.net; git fetch --all; git checkout --force production; git pull origin production --force; ~/composer.phar install -n --optimize-autoloader --no-dev; npm install"

1
ssh_homestead.sh Normal file
View File

@ -0,0 +1 @@
ssh homestead -t "cd code/Bruno\ Fontes/shareit; bash --login"

4
start_vagrant.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/zsh
builtin cd ~/development/laravelHomestead && /usr/bin/vagrant up && builtin cd -
~/Apps/firefox/firefox-bin http://shareit.test
~/Apps/firefox/firefox-bin https://mailtrap.io/inboxes/455614/messages