When working on enterprise projects, it’s common to have to download private dependencies that require authentication to be installed (usually, internal or paid packages). In modern setups, you’ll most likely use Docker to package your application (or service) and all its dependencies into a standalone image. Typically, building the Docker image is automated through a…
Category: DevOps
Preventing CORS Preflight Requests Using Content Negotiation
In modern web applications, it’s a common pattern to serve the web API and the frontend app from different subdomains: https://api.example.com: your web API, usually serving JSON documents https://example.com: your web application, usually built in JavaScript, generating HTML documents from the raw JSON data retrieved from the API This was the pattern implemented by API…
Symfony’s New Native Docker Support (Symfony World)
I’m very excited to announce that after 6 years of teamwork, Symfony and API Platform now include an industry-first set of tools designed to automatically create, manage and run the Docker containers needed for your applications. Read my article on the Symfony blog Watch my Symfony World talk Browse my slides deck:
CoopTilleulsOVHBundle: OVH SDK integration in Symfony
I’ve just released a new tiny open source bundle under the Les-Tilleuls.coop umbrella: CoopTilleulsOvhBundle. That bundle integrates the official PHP SDK provided by OVH and exposes it as a Symfony service. It also provides a convenient way to store API credentials in parameters.yml. The OVH API provides a lot of features including dynamic server management (elasticity)…
Continuous Integration for Symfony apps, the modern stack: quality checks, private Composer, headless browser testing…
Updated 2014/11/21 : Fixed a bug when deploying (thanks @meyer_baptiste). Added a command to update GitHub commit status (thanks @samuelroze). At Les-Tilleuls.coop, we built great e-commerce platforms and high-performance web applications with quality and agility in mind. Most of our applications share the same technical stack: the PHP language with the Symfony framework and Doctrine for back applications front applications developed with CoffeeScript or…
Sécuriser tant bien que mal une application Symfony installée dans un sous-répertoire
Souvent, pour des raisons de coups liées aux certificats SSL, il n’est pas possible d’installer une application Symfony dans son propre virtual host. L’application se retrouve alors dans un sous-répertoire du DocumentRoot, ouverte à tous vents et c’est une catastrophe en terme de sécurité ! Imaginons que notre DocumentRoot soit /home/web et que l’application Symfony…
Installer PHP sur OS X avec le support de MySQL et de INTL
Après avoir installé Homebrew, il ajoutons les dépôts Homebrew-PHP et Homebrew-dupes : $ brew tap josegonzalez/php $ brew tap homebrew/dupes Installons maintenant PHP 5.4 avec le support de MySQL et de INTL : $ brew install php54 –with-mysql –with-intl $ brew install php54-intl Ajoutez maintenant la ligne indiquée par Homebrew pour que Apache charge le module PHP…
Installer un stack LAMP sur un dédié OVH avec Ubuntu 12.10
Petit mémo pour configurer un serveur web LAMP sur un dédié OVH fraichement livré. La distro choisie est Ubuntu 12.10. Apache, PHP, MySQL Commençons par mettre à jour la liste des paquets : # apt-get update Puis la distribution elle même : # apt-get dist-upgrade Installons Apache, PHP, MySQL, phpMyAdmin et les extensions qui vont bien pour…
Changer l’emplacement de mysql.sock avec MAMP
Si comme moi vous utilisez le serveur MySQL fourni avec MAMP pour d’autres usages que le développement PHP, par exemple comme gestionnaire de base de données pendant la création d’applications Django ou Ruby on Rails, il peut être utile de changer l’emplacement de son socket UNIX vers un emplacement plus commun, qui sera trouvé automatiquement par…
Monter une partition Linux sous Mac OS X
Ou plus précisément une partition de type ext2/3, le système de fichier le plus populaire sous GNU/Linux, utilisé par défaut sur Ubuntu. Mac OS X n’inclut pas de pilote pour monter les partitions ext2, heureusement un projet libre comble ce manque : ext2fsx. Récupérer la version ext2fsx_dev sur le site du projet, la seule supportant…