Commit 4d9883d8865d6d349cbccc7556eaf3000662626b

Authored by Éber Freitas Dias
1 parent 35a52532
Exists in 2.9 and in 8 other branches 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8

Ajustes (review)

Showing 3 changed files with 12 additions and 12 deletions   Show diff stats
.gitignore
... ... @@ -5,8 +5,8 @@
5 5 /public/module
6 6 /public/modules
7 7 /vendor
8   -/ieducar-v-*
9   -ieducar-v-*.tar.gz
  8 +/ieducar-*
  9 +ieducar-*.tar.gz
10 10 .env
11 11 .env.host
12 12 .env.testing
... ...
public/install.php
1 1 <?php
2 2  
3 3 set_time_limit(0);
  4 +memory_limit(0);
4 5  
5 6 $rootDir = realpath(__DIR__ . '/../');
6 7  
... ...
scripts/build
1 1 #!/bin/bash
2 2  
3 3 VERSION=`cat VERSION | tr -d '[:space:]'`
4   -FILE_VERSION=`echo $VERSION | tr . -`
5   -BUILD_FOLDER=ieducar-v-${FILE_VERSION}
  4 +FILE_VERSION=`echo ${VERSION} | tr . -`
  5 +BUILD_FOLDER=ieducar-${FILE_VERSION}
6 6  
7 7 mkdir -p ${BUILD_FOLDER}/
8   -sudo rm -R ${BUILD_FOLDER}/* 2> /dev/null
9 8 git checkout-index --prefix=${BUILD_FOLDER}/ -a -f
10 9 cd ${BUILD_FOLDER}
11 10 cp ieducar/configuration/ieducar.ini.example ieducar/configuration/ieducar.ini
12   -sed -i 's/APP_ENV=local/APP_ENV=production/g' .env.example
13   -sed -i 's/APP_DEBUG=true/APP_DEBUG=false/g' .env.example
  11 +sed -i.bak 's/APP_ENV=local/APP_ENV=production/g' .env.example && rm .env.example.bak
  12 +sed -i.bak 's/APP_DEBUG=true/APP_DEBUG=false/g' .env.example && rm .env.example.bak
14 13 composer install --no-dev --ignore-platform-reqs --optimize-autoloader
15   -git clone git@github.com:portabilis/i-educar-reports-package.git ieducar/modules/Reports
16   -sudo rm -R ieducar/modules/Reports/.git
  14 +git clone https://github.com/portabilis/i-educar-reports-package.git ieducar/modules/Reports
  15 +rm -fR ieducar/modules/Reports/.git
17 16 cd ..
18   -tar -zcvf ieducar-v-${FILE_VERSION}.tar.gz ${BUILD_FOLDER}
19   -sudo rm -R ${BUILD_FOLDER}
  17 +tar -zcvf ieducar-${FILE_VERSION}.tar.gz ${BUILD_FOLDER}
  18 +rm -fR ${BUILD_FOLDER}
20 19 echo
21   -echo "Build realizado"
  20 +echo "Build realizado!"
22 21 exit 0
... ...