View circleci-config.yml
This file contains 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
version: 2 | |
workdir-latest: &workdir-latest | |
working_directory: ~/project/latest | |
docker-latest: &docker-latest | |
docker: | |
- image: abenevaut/vapor-ci:node_16-php_81 | |
checkout: &checkout |
View circleci-config.yml
This file contains 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
version: 2 | |
jobs: | |
test: | |
docker: | |
- image: abenevaut/vapor-ci:node_16-php_81 | |
steps: | |
- checkout |
View entrypoint.sh
This file contains 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
#! /bin/sh | |
# Start Newrelic daemon | |
newrelic-daemon -c /usr/local/etc/newrelic/newrelic.cfg | |
# Start PHP | |
/opt/bootstrap | |
newrelic_background_job(false); |
View ext-xdebug.ini
This file contains 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
// /usr/local/etc/php/8.0/conf.d/ext-xdebug.ini | |
zend_extension=xdebug.so | |
xdebug.mode=develop,debug,coverage | |
xdebug.start_with_request=yes | |
xdebug.discover_client_host=0 | |
xdebug.client_host=127.0.0.1 |
View mysql_copy_database_to_database.sh
This file contains 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
mysqldump -h 127.0.0.1 -P 3306 --user=root --password="" db_1 | mysql -h 127.0.0.1 -P 3306 --user=root --password="" -C db_2 |
View ext-xdebug.ini
This file contains 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
// /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini | |
zend_extension=xdebug.so | |
xdebug.default_enable=1 | |
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_port=9001 | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_connect_back=1 | |
xdebug.idekey=PHPSTORM | |
xdebug.show_error_trace=1 |
View .gitignore_global.sh
This file contains 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
# ask terminal to get global gitignore `git config --global core.excludesfile` | |
# set a custom global ignore file `git config --global core.excludesfile ~/.gitignore_global` | |
*~ | |
.DS_Store | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff |
View find-php-ext-version.sh
This file contains 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 -i | grep 'GD\|ImageMagick\|json' |
View install-php_7.4.0.sh
This file contains 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
xcode-select --install | |
# You should install brew https://brew.sh/index_fr | |
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gd gmp libevent zlib libzip bzip2 imagemagick pkg-config oniguruma | |
brew link --force icu4c | |
brew link --force openssl | |
brew link --force libxml2 | |
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
chmod +x phpbrew |
View install-nginx-with-phpbrew.sh
This file contains 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
// First follow https://gist.github.com/abenevaut/fd21704ead845e5bc14ca93fa8d0a18f but modify the line 17 like follow | |
// add +fpm to compile php-fpm | |
phpbrew --debug install php-7.3.10 +gd +default +sqlite +mysql +fpm +bz2=/usr/local/Cellar/bzip2/1.0.6_1/ +zlib=/usr/local/Cellar/zlib/1.2.11/ -- --with-gd=shared | |
brew install nginx | |
sudo emacs /usr/local/etc/nginx/nginx.conf | |
sudo emacs /Users/YOUR_MACOS_USERNAME/.phpbrew/php/php-7.1.29/etc/php-fpm.d/www.conf | |
// In previous config files, we set user and group to run nginx and php-fpm as setted user and user group (logic).. |
NewerOlder