Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
991 B

#!/bin/sh
if (php --version | grep -i HipHop > /dev/null); then
echo "skipping application setup on HHVM"
else
# basic application:
composer install --dev --prefer-dist -d apps/basic
cd apps/basic && sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
cd tests && codecept build && cd ../../..
# advanced application:
composer install --dev --prefer-dist -d apps/advanced
cd apps/advanced && ./init --env=Development
sed -i s/root/travis/ common/config/main-local.php
10 years ago
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
10 years ago
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
cd tests/codeception/backend && codecept build
cd ../../../common && codecept build
cd ../../../frontend && codecept build && cd ../../../../../..
# boot server
cd apps && php -S localhost:8080 > /dev/null 2>&1 &
fi