adding the update script, use it only in Dev stage

This commit is contained in:
Fernando Ontiveros
2014-02-26 07:51:37 -05:00
parent b5e67cce7c
commit 5e294cb92b
2 changed files with 26 additions and 1 deletions

View File

@@ -97,7 +97,6 @@ $jsFiles = array (
"workflow/public_html/lib/pmUI/pmui.min.js", "workflow/public_html/lib/pmUI/pmui.min.js",
"workflow/public_html/lib/mafe/mafe.min.js", "workflow/public_html/lib/mafe/mafe.min.js",
"workflow/public_html/lib/mafe/designer.min.js", "workflow/public_html/lib/mafe/designer.min.js",
"workflow/public_html/lib/js/tiny_mce.min.js",
"gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce.js", "gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce.js",
"gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js", "gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js",

26
update Executable file
View File

@@ -0,0 +1,26 @@
echo "<h1>Michelangelo Update</h1><h2>Changelog Processmaker</h2><code>" > temp.txt
git pull
git log -n 20 --relative-date --graph --format=short >> temp.txt
cd vendor/colosa/pmUI
echo "</code><br><h2>Changelog pmUI</h2><br><code>" >> ../../../temp.txt
git pull
git log -n 20 --relative-date --graph --format=short >> ../../../temp.txt
cd ../MichelangeloFE
echo "</code><br><h2>Changelog MichelangeloFE</h2><br><code>" >> ../../../temp.txt
git pull
git log -n 20 --relative-date --graph --format=short >> ../../../temp.txt
cd ../../../
echo "</code><br><h2>build-vendor.php</h2><br><code>" >> temp.txt
php build-vendor.php >> temp.txt
sed ':a;N;$!ba;s/\n/<br>/g' temp.txt > workflow/public_html/build-log.html
echo "update executed succesfully, check the log in http://<server>/build-log.html "