This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frontend | |
| server { | |
| listen 80; | |
| server_name yii2.lo; | |
| server_tokens off; | |
| client_max_body_size 128M; | |
| charset utf-8; | |
| access_log /var/log/nginx/yii2-access.log main buffer=50k; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installing MySQL | |
| We use Percona-MySQL everywhere for extra features and up-to-date Ubunut builds they maintain. | |
| Add Percona Repo | |
| Execute following commands: | |
| apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT CONCAT('ALTER TABLE `', table_name, '` MODIFY `', column_name, '` ', DATA_TYPE, ' CHARACTER SET UTF8 COLLATE utf8_bin;') | |
| FROM information_schema.COLUMNS | |
| WHERE TABLE_SCHEMA = 'jira' | |
| AND DATA_TYPE != 'varchar' | |
| AND | |
| ( | |
| CHARACTER_SET_NAME != 'utf8' | |
| OR | |
| COLLATION_NAME != 'utf8_bin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set("error_reporting", E_ALL & ~E_DEPRECATED); | |
| define('projects_dir',"www/"); | |
| define('apache_dir',"/etc/apache2/"); | |
| define('apache_config_www_folder',"/home/\${APACHE_RUN_USER}/Web/www/"); | |
| define('host_delimiter',"#------------------APACHE 2 HOSTS UPDATER---DONT MODIFY THIS BLOCK-----------------"); | |
| $doneHosts = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #frontend | |
| server { | |
| listen 80; | |
| server_name admin.host.com; | |
| server_tokens off; | |
| client_max_body_size 8M; | |
| charset utf-8; | |
| access_log /home/www-data/admin.host.com/logs/frontend-access.log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define('ROOT', dirname(dirname(__DIR__)) . '/'); | |
| require_once ROOT . 'vendor/autoload.php'; | |
| use Codeception\Configuration; | |
| $kernel = AspectMock\Kernel::getInstance(); | |
| $kernel->init([ | |
| 'debug' => true, | |
| 'appDir' => ROOT.'app', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = {{имя}} {{фамилия}} | |
| email = {{емейл}} | |
| [core] | |
| symlinks = false | |
| autocrlf = true | |
| repositoryformatversion = 0 | |
| filemode = false | |
| [color] | |
| diff = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-compose up -d | |
| docker-compose run --rm app bin/wait # ждет пока поднимется все | |
| docker-compose run --rm app bin/console doctr:mig:mig -n | |
| docker-compose run --rm app bin/phpunit --testsuite integration | |
| docker kill $(docker ps -q) | |
| docker rm $(docker ps -a -q) -f | |
| docker rmi $(docker images -q) -f | |
| docker system prune --volumes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker kill $(docker ps -q) | |
| docker rm $(docker ps -a -q) -f | |
| docker rmi $(docker images -q) -f | |
| docker system prune |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /tmp | |
| wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb | |
| dpkg -i zabbix-release_3.4-1+xenial_all.deb | |
| apt-get update | |
| apt install zabbix-agent zabbix-sender zabbix-get | |
| #rabbitmq | |
| echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list | |
| wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - | |
| sudo apt-get update |
OlderNewer