1
0
mirror of https://github.com/brunofontes/shareit.git synced 2025-04-08 21:30:49 +00:00
shareit/deploy.sh
Bruno Fontes de91c4ef9f
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)
2021-04-21 08:09:53 -03:00

3 lines
319 B
Bash

#!/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"