From f77944bfc6374a4d364e03f55ae84e36c6f9f48a Mon Sep 17 00:00:00 2001 From: Camilo Carromeu Date: Thu, 29 Sep 2016 16:05:23 -0400 Subject: [PATCH] =?UTF-8?q?Altera=C3=A7=C3=A3o=20na=20estrutura=20da=20ins?= =?UTF-8?q?t=C3=A2ncia-base.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visando adaptar ao uso de repositórios GIT. --- .gitignore | 12 +++++----- app/.htaccess => .htaccess | 0 Vagrantfile | 24 +++++++++++++++++++ app/index.php | 2 -- box-php7/Vagrantfile | 14 ----------- box/Vagrantfile | 14 ----------- box/{ => php5}/bootstrap.sh | 16 ++++++------- box/{ => php5}/settings/000-default.conf | 0 box/{ => php5}/settings/apache2.conf | 0 {box-php7 => box/php5}/settings/cron | 0 box/{ => php5}/settings/pg_hba.conf | 1 + box/{ => php5}/settings/php_cli.ini | 0 box/{ => php5}/settings/php_web.ini | 0 box/{ => php5}/settings/postgresql.conf | 0 box/{ => php5}/settings/sshd_config | 0 {box-php7 => box/php7}/bootstrap.sh | 0 box/{ => php7}/settings/cron | 0 {box-php7 => box/php7}/settings/nginx-default | 0 {box-php7 => box/php7}/settings/pg_hba.conf | 0 {box-php7 => box/php7}/settings/php-cli.ini | 0 {box-php7 => box/php7}/settings/php-fpm.ini | 0 .../php7}/settings/postgresql.conf | 0 {box-php7 => box/php7}/settings/sshd_config | 0 composer.json | 4 ++-- {app/configure => configure}/.htaccess | 0 {app/configure => configure}/alert.xml | 0 {app/configure => configure}/api.xml | 0 {app/configure => configure}/archive.xml | 0 {app/configure => configure}/attribute.xml | 0 {app/configure => configure}/business.xml | 0 {app/configure => configure}/ldap.xml | 0 {app/configure => configure}/log.xml | 0 {app/configure => configure}/mail.xml | 0 {app/configure => configure}/security.xml | 0 {app/configure => configure}/shopping.xml | 0 {app/configure => configure}/social.xml | 0 {app/configure => configure}/titan.xml | 0 {app/configure => configure}/tool.xml | 0 {app/configure => configure}/type.xml | 0 {app/doc => doc}/.htaccess | 0 index.php | 3 +++ {app/section => section}/.htaccess | 0 {app/section => section}/access/alert.xml | 0 {app/section => section}/access/all.xml | 0 .../section => section}/access/config.inc.xml | 0 {app/section => section}/access/list.xml | 0 {app/section => section}/access/log.xml | 0 .../section => section}/access/permission.xml | 0 {app/section => section}/access/type.xml | 0 {app/section => section}/access/user.xml | 0 .../archive/config.inc.xml | 0 {app/section => section}/archive/create.xml | 0 {app/section => section}/home/config.inc.xml | 0 {app/section => section}/manager/all.xml | 0 .../manager/config.inc.xml | 0 {app/section => section}/manager/list.xml | 0 {app/section => section}/manager/modify.xml | 0 app/titan.php => titan.php | 0 {app/update => update}/.htaccess | 0 {app/update => update}/VERSION | 0 {app/update => update}/app/production.txt | 0 {app/update => update}/app/test.txt | 0 {app/update => update}/blacklist.txt | 0 db/last.sql => update/initialize.sql | 0 64 files changed, 44 insertions(+), 46 deletions(-) rename app/.htaccess => .htaccess (100%) create mode 100644 Vagrantfile delete mode 100644 app/index.php delete mode 100644 box-php7/Vagrantfile delete mode 100644 box/Vagrantfile rename box/{ => php5}/bootstrap.sh (77%) rename box/{ => php5}/settings/000-default.conf (100%) rename box/{ => php5}/settings/apache2.conf (100%) rename {box-php7 => box/php5}/settings/cron (100%) rename box/{ => php5}/settings/pg_hba.conf (98%) rename box/{ => php5}/settings/php_cli.ini (100%) rename box/{ => php5}/settings/php_web.ini (100%) rename box/{ => php5}/settings/postgresql.conf (100%) rename box/{ => php5}/settings/sshd_config (100%) rename {box-php7 => box/php7}/bootstrap.sh (100%) rename box/{ => php7}/settings/cron (100%) rename {box-php7 => box/php7}/settings/nginx-default (100%) rename {box-php7 => box/php7}/settings/pg_hba.conf (100%) rename {box-php7 => box/php7}/settings/php-cli.ini (100%) rename {box-php7 => box/php7}/settings/php-fpm.ini (100%) rename {box-php7 => box/php7}/settings/postgresql.conf (100%) rename {box-php7 => box/php7}/settings/sshd_config (100%) rename {app/configure => configure}/.htaccess (100%) rename {app/configure => configure}/alert.xml (100%) rename {app/configure => configure}/api.xml (100%) rename {app/configure => configure}/archive.xml (100%) rename {app/configure => configure}/attribute.xml (100%) rename {app/configure => configure}/business.xml (100%) rename {app/configure => configure}/ldap.xml (100%) rename {app/configure => configure}/log.xml (100%) rename {app/configure => configure}/mail.xml (100%) rename {app/configure => configure}/security.xml (100%) rename {app/configure => configure}/shopping.xml (100%) rename {app/configure => configure}/social.xml (100%) rename {app/configure => configure}/titan.xml (100%) rename {app/configure => configure}/tool.xml (100%) rename {app/configure => configure}/type.xml (100%) rename {app/doc => doc}/.htaccess (100%) create mode 100644 index.php rename {app/section => section}/.htaccess (100%) rename {app/section => section}/access/alert.xml (100%) rename {app/section => section}/access/all.xml (100%) rename {app/section => section}/access/config.inc.xml (100%) rename {app/section => section}/access/list.xml (100%) rename {app/section => section}/access/log.xml (100%) rename {app/section => section}/access/permission.xml (100%) rename {app/section => section}/access/type.xml (100%) rename {app/section => section}/access/user.xml (100%) rename {app/section => section}/archive/config.inc.xml (100%) rename {app/section => section}/archive/create.xml (100%) rename {app/section => section}/home/config.inc.xml (100%) rename {app/section => section}/manager/all.xml (100%) rename {app/section => section}/manager/config.inc.xml (100%) rename {app/section => section}/manager/list.xml (100%) rename {app/section => section}/manager/modify.xml (100%) rename app/titan.php => titan.php (100%) rename {app/update => update}/.htaccess (100%) rename {app/update => update}/VERSION (100%) rename {app/update => update}/app/production.txt (100%) rename {app/update => update}/app/test.txt (100%) rename {app/update => update}/blacklist.txt (100%) rename db/last.sql => update/initialize.sql (100%) diff --git a/.gitignore b/.gitignore index 998544c..1cfd785 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -app/backup -app/cache -app/file -app/vendor -box/.vagrant -box/vagrant.log +backup +cache +file +vendor +.vagrant +vagrant.log diff --git a/app/.htaccess b/.htaccess similarity index 100% rename from app/.htaccess rename to .htaccess diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..ac8e350 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,24 @@ +Vagrant.configure("2") do |config| + # To activate... + # - PHP 7.0, use "bento/ubuntu-16.04". + # - PHP 5.6, use "debian/jessie64". + + # config.vm.box = "bento/ubuntu-16.04" + config.vm.box = "debian/jessie64" + + config.vm.network "forwarded_port", guest: 80, host: 8090 + config.vm.network "forwarded_port", guest: 5432, host: 5431 + + config.vm.network "private_network", ip: "192.168.33.10" + + config.vm.synced_folder ".", "/var/www/app", type: "virtualbox" + config.vm.synced_folder "db", "/var/lib/postgresql/db", type: "virtualbox" + config.vm.synced_folder ".", "/vagrant", type: "virtualbox" + + # To activate... + # - PHP 7.0, use "box/php7/bootstrap.sh". + # - PHP 5.6, use "box/php5/bootstrap.sh". + + # config.vm.provision "shell", path: "box/php7/bootstrap.sh" + config.vm.provision "shell", path: "box/php5/bootstrap.sh" +end diff --git a/app/index.php b/app/index.php deleted file mode 100644 index 5eaf964..0000000 --- a/app/index.php +++ /dev/null @@ -1,2 +0,0 @@ -=5.2,<7.0" + "php": ">=5.2" }, "config": { - "vendor-dir": "app/vendor" + "vendor-dir": "vendor" } } diff --git a/app/configure/.htaccess b/configure/.htaccess similarity index 100% rename from app/configure/.htaccess rename to configure/.htaccess diff --git a/app/configure/alert.xml b/configure/alert.xml similarity index 100% rename from app/configure/alert.xml rename to configure/alert.xml diff --git a/app/configure/api.xml b/configure/api.xml similarity index 100% rename from app/configure/api.xml rename to configure/api.xml diff --git a/app/configure/archive.xml b/configure/archive.xml similarity index 100% rename from app/configure/archive.xml rename to configure/archive.xml diff --git a/app/configure/attribute.xml b/configure/attribute.xml similarity index 100% rename from app/configure/attribute.xml rename to configure/attribute.xml diff --git a/app/configure/business.xml b/configure/business.xml similarity index 100% rename from app/configure/business.xml rename to configure/business.xml diff --git a/app/configure/ldap.xml b/configure/ldap.xml similarity index 100% rename from app/configure/ldap.xml rename to configure/ldap.xml diff --git a/app/configure/log.xml b/configure/log.xml similarity index 100% rename from app/configure/log.xml rename to configure/log.xml diff --git a/app/configure/mail.xml b/configure/mail.xml similarity index 100% rename from app/configure/mail.xml rename to configure/mail.xml diff --git a/app/configure/security.xml b/configure/security.xml similarity index 100% rename from app/configure/security.xml rename to configure/security.xml diff --git a/app/configure/shopping.xml b/configure/shopping.xml similarity index 100% rename from app/configure/shopping.xml rename to configure/shopping.xml diff --git a/app/configure/social.xml b/configure/social.xml similarity index 100% rename from app/configure/social.xml rename to configure/social.xml diff --git a/app/configure/titan.xml b/configure/titan.xml similarity index 100% rename from app/configure/titan.xml rename to configure/titan.xml diff --git a/app/configure/tool.xml b/configure/tool.xml similarity index 100% rename from app/configure/tool.xml rename to configure/tool.xml diff --git a/app/configure/type.xml b/configure/type.xml similarity index 100% rename from app/configure/type.xml rename to configure/type.xml diff --git a/app/doc/.htaccess b/doc/.htaccess similarity index 100% rename from app/doc/.htaccess rename to doc/.htaccess diff --git a/index.php b/index.php new file mode 100644 index 0000000..d42f36c --- /dev/null +++ b/index.php @@ -0,0 +1,3 @@ +