Fixed the vagrant script and added required modules to application config, removed the unused script.

feature/upgrade-to-zf3
Ruslan Baidan 2019-10-31 10:27:09 +01:00
parent 629aac6545
commit 56e5268520
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
5 changed files with 4754 additions and 14 deletions

4737
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,18 @@ if (!empty($appConfDir)) {
return array(
'modules' => array(
'Zend\Di',
'Zend\Cache',
'Zend\Form',
'Zend\InputFilter',
'Zend\Filter',
'Zend\Paginator',
'Zend\Hydrator',
'Zend\Router',
'Zend\Log',
'Zend\Mail',
'Zend\Validator',
'Zend\I18n',
'DoctrineModule',
'DoctrineORMModule',
'Monarc\Core',

View File

@ -1,10 +0,0 @@
#!/bin/bash
cd /var/www/continuousphp/current
while [ ! -f /var/lib/continuousphp/credentials.ini ]
do
sleep 2
done
chown -R www-data:www-data /var/www/continuousphp/current/*
bin/phing -propertyfile /var/lib/continuousphp/credentials.ini init

2
vagrant/Vagrantfile vendored
View File

@ -22,7 +22,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 80, host: 5000
config.vm.network :forwarded_port, guest: 3306, host: 3307
config.vm.network :forwarded_port, guest: 3306, host: 3309
# Create a private network, which allows host-only access to the machine
# using a specific IP.

View File

@ -33,7 +33,7 @@ dpkg-reconfigure locales
echo -e "\n--- Installing now… ---\n"
echo -e "\n--- Updating packages list ---\n"
apt-get update
apt-get update && apt-get -y upgrade
echo -e "\n--- Install base packages… ---\n"
apt-get -y install vim zip unzip git gettext > /dev/null
@ -67,7 +67,7 @@ expect -f - <<-EOF
send -- "y\r"
expect eof
EOF
sudo apt-get purge -y expect > /dev/null 2>&1
sudo apt-get purge -y expect php-xdebug > /dev/null 2>&1
echo -e "\n--- Configuring… ---\n"
sed -i "s/skip-external-locking/#skip-external-locking/g" $MARIA_DB_CFG
@ -90,6 +90,7 @@ done
echo -e "\n--- Configuring Xdebug for development ---\n"
cat > $X_DEBUG_CFG <<EOF
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.idekey=IDEKEY
@ -241,7 +242,7 @@ echo -e "\n--- Update the project… ---\n"
echo -e "\n--- Create initial user and client ---\n"
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php > /dev/null
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/BackOffice/migrations/phinx.php > /dev/null
echo -e "\n--- Restarting Apache… ---\n"