Skip to content

Instantly share code, notes, and snippets.

@kappaj
kappaj / deploy-symfony-2.sh
Created April 12, 2016 16:14 — forked from matteocaberlotto/deploy-symfony.sh
A simple bash script to deploy symfony 2 applications (multiple environment)
#!/bin/bash
# include config
# config example below:
#
#
# Example deploy_config.sh
#
# dev_env() {
@kappaj
kappaj / create-database.sh
Created April 12, 2016 16:14 — forked from matteocaberlotto/create-database.sh
bash script to create user and database
#!/bin/bash
if [ "$1" == "" ]; then
echo "Error: database required: use create-database <db_name> <username> <password>"
exit 1
fi
if [ "$2" == "" ]; then