Last active
July 5, 2017 18:50
-
-
Save kevinnio/6d3c544dea34a075fb585ffc9607788d to your computer and use it in GitHub Desktop.
Script para deplegar el SIIUTeM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
# ssh siiutem.net php artisan down | |
# Desplegar siiutem-repositorios | |
cd vendor/utem-dsi/siiutem-repositorios | |
git push origin develop:develop | |
# Desplegar siiutem | |
cd ../../.. | |
git push origin develop:develop | |
# Preparar siiutem en producción | |
ssh sistsaii@siiutem.net -p 5897 "git --git-dir="/git/siiutem" --work-tree="." checkout develop -f && (\ | |
(composer install --no-dev --ignore-platform-reqs || composer install --ignore-platform-reqs --no-dev --no-scripts) && \ | |
php artisan migrate:modules --force; \ | |
(npm install && bower install && gulp); \ | |
(cd vendor/utem-dsi/siiutem-repositorios && git checkout develop -f && git pull && cd ../../..)); \ | |
php artisan migrate:siiutem --force;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment