Skip to content

Instantly share code, notes, and snippets.

  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save geff21st/cb5b03a2234eebc82ca3dbf228501bb8 to your computer and use it in GitHub Desktop.

Служебные скрипты

wget http://dev.1c-bitrix.ru/download/scripts/bitrix_server_test.php
wget https://www.1c-bitrix.ru/download/files/scripts/restore.php

Настройки GIT

git config --global color.ui auto &&
git config --global color.branch auto &&
git config --global color.status auto &&
git config --global core.autocrlf false &&
git config --global core.quotepath false

Настройка Composer

Включить модули в веб-окружении

yes | cp /etc/php.d/20-phar.ini.disabled /etc/php.d/20-phar.ini &&
yes | cp /etc/php.d/20-curl.ini.disabled /etc/php.d/20-curl.ini &&
yes | cp /etc/php.d/30-xmlreader.ini.disabled /etc/php.d/30-xmlreader.ini &&
yes | cp /etc/php.d/20-xmlwriter.ini.disabled /etc/php.d/20-xmlwriter.ini &&
echo ''

Установить composer (под рутом)

Для CentOS

yum install composer

либо

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&
HASH="$(wget -q -O - https://composer.github.io/installer.sig)" &&
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer && rm composer-setup.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment