Simple example on how to update the php-fpm.conf file for a Symfony application.
It should be used for the kickoff-docker-php.
| #!/bin/bash | |
| # Source files so we can announce stuff | |
| . /mnt/apps/scripts/setenv.sh | |
| . /mnt/apps/scripts/hipchat_notify.sh | |
| if [ $(pidof -x deploy_if_new.sh | wc -w) -gt 2 ]; then | |
| echo "$(date +"%Y-%m-%d %H:%M:%S %Z") Cowardly exiting as deploy_if_new is already running" | |
| exit -1 | |
| fi |
| <?php | |
| //...your silex bootstrap. | |
| //Configure Swiftmail to use SMTP. | |
| $app->register(new SwiftmailerExtension(), array( | |
| 'swiftmailer.options' => array( | |
| 'host' => 'smtp.gmail.com', | |
| 'port' => 465, | |
| 'username' => 'silex.swiftmailer@gmail.com', |
Simple example on how to update the php-fpm.conf file for a Symfony application.
It should be used for the kickoff-docker-php.
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| log_format ltsv 'domain:$host\t' | |
| 'host:$remote_addr\t' | |
| 'user:$remote_user\t' | |
| 'time:$time_local\t' | |
| 'method:$request_method\t' | |
| 'path:$request_uri\t' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # David Lutz's Multi VM Vagrantfile | |
| # inspired from Mark Barger's https://gist.github.com/2404910 | |
| boxes = [ | |
| { :name => :web, :role => 'web_dev', :ip => '192.168.33.1', :ssh_port => 2201, :http_fwd => 9980, :cpus =>4, :shares => true }, | |
| { :name => :data, :role => 'data_dev', :ip => '192.168.33.2', :ssh_port => 2202, :mysql_fwd => 9936, :cpus =>4 }, | |
| { :name => :railsapp, :role => 'railsapp_dev', :ip => '192.168.33.3', :ssh_port => 2203, :http_fwd => 9990, :cpus =>1} | |
| ] |
| curl --user <USER>:<PASSWORD> -X POST https://bitbucket.org/api/1.0/users/<USER>/ssh-keys --data-urlencode "key=<PUBLIC_KEY>" --data-urlencode "label=<LABEL>" |
| #! /bin/sh | |
| cd /usr/share/locales | |
| ./install-language-pack eo | |
| ./install-language-pack ia | |
| ./install-language-pack ie | |
| ./install-language-pack io | |
| ./install-language-pack vo | |
| ./install-language-pack ca |
| <?php | |
| /** | |
| * Sealed class can not be created directly | |
| */ | |
| class Seal | |
| { | |
| private function __construct() | |
| { | |
| // private ctor prevents from direct creation of instance | |
| } |
| sf2-ddd | |
| ├── app | |
| ├── bin | |
| ├── build | |
| ├── lib | |
| ├── src | |
| │ └── __VendorPrefix | |
| │ ├── Application | |
| │ │ └── __DomainNameBundle | |
| │ │ ├── Command |