To use xdebug with macOS and docker is quite, let´s call it tricky ;)
The following steps need to be proceed to get it working:
- use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off
<?php declare (strict_types = 1); | |
namespace App\Normalizer; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
/** | |
* Entity normalizer | |
*/ | |
class EntityNormalizer implements DenormalizerInterface |
<?php | |
declare(strict_types = 1); | |
namespace App\Kafka; | |
use RdKafka; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; |
# (!) Based on : https://gist.github.com/tony-gutierrez/198988c34e020af0192bab543d35a62a | |
# Dont forget to set the env variable "CERTDOMAIN" and "EMAIL" | |
# Also note that this config is using the LetsEncrypt staging server, remove the flag when ready! | |
Resources: | |
sslSecurityGroupIngress: | |
Type: AWS::EC2::SecurityGroupIngress | |
Properties: | |
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
IpProtocol: tcp |
git fetch --prune origin "+refs/tags/*:refs/tags/*" |
#!/usr/bin/php | |
<?php | |
if (!isset($argv[1])) { | |
echo_error("Please, tell me what PHP version you want!"); | |
exit; | |
} | |
$to_version = $argv[1]; | |
$to_version = (int)str_replace('.', '', $to_version); |
<?php | |
namespace Deployer; | |
require 'recipe/laravel.php'; | |
$repo_url = ''; | |
$branch = 'master'; | |
$server_url = ''; | |
$user = ''; |
If you've had to re-associate your virtual machine with vagrant, but vagrant ssh
now requires a password to connect, this is because the ssh key associated with the box disappeared. You can still get in with the password vagrant
(usually), but many workflows will need the automatic connection.
Here's how to regain public/private key authentication to ssh into your vagrant virtual machine:
Run vagrant up
, then vagrant ssh-config
to find the IdentityFile:
$ vagrant ssh-config
Host default
HostName 127.0.0.1
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
rename = require('gulp-rename'), | |
cssmin = require('gulp-cssnano'), | |
prefix = require('gulp-autoprefixer'), | |
plumber = require('gulp-plumber'), | |
notify = require('gulp-notify'), | |
sassLint = require('gulp-sass-lint'), | |
sourcemaps = require('gulp-sourcemaps'); | |
// Temporary solution until gulp 4 |
# For example, run "npm install" | |
docker run -v "$PWD":/usr/src/app -w /usr/src/app node:4 npm install | |
# This command creates a container (downloading one first if you don't have it locally), runs the command in a current directory and quits the container | |
# Great Success! |