Random
Convert Bash script to Ansible Playbook
A simple bash script to provision a virtual host for a wordpress site, called within a Vagrant build. #!/bin/bash # Install wp-cli curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar –info chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp wp –info # Setup Apache to properly rewrite the WordPress www subdomain sudo cp /var/www/myapp/provisioning/myapp.conf.vagrant Read more…
Random
Rebase your database migrations to a single class file quickly
While developing, Doctrine Migrations can quickly become obsolete as you adjust your schema in the early stages of development. Nevertheless, Migrations are still a vital part of properly building compatibility for deployments. However, to consolidate and avoid having several (or in my case dozens) Migration Versions before you’ve got a Read more…
Random
Setting up Ruby+Compass in Vagrant
For a variety of reasons, it appears the default frontend_config.sh bash script does not work 100% of the time in the litwicki-lemp vagrant box. So, I’ve added a simple manual step-by-step of the bash script that works. If anyone can figure out what I’ve done wrong in the bash script Read more…