Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
/path/to/unicorn/log/unicorn.stderr.log | |
/path/to/production/log/production.log | |
{ | |
daily | |
missingok | |
rotate 180 | |
compress | |
dateext | |
# this is important if using "compress" since we need to call |
Write this mixin once: | |
@mixin box_gradient($start, $end) | |
background-color: $start | |
background-image: -webkit-gradient(linear, left top, left bottom, from($start), to($end)) | |
background-image: -webkit-linear-gradient(top, $start, $end) | |
background-image: -moz-linear-gradient(top, $start, $end) | |
background-image: -ms-linear-gradient(top, $start, $end) | |
background-image: -o-linear-gradient(top, $start, $end) | |
background-image: linear-gradient(top, $start, $end) |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
#!/usr/bin/env sh | |
#configurables | |
DBINSTANCE="yourdbinstanceID" | |
ENDPOINT="XXXXXXXXXXXX.us-east-1.rds.amazonaws.com" | |
USER='yourUser' | |
PASSWD='yourPassword' | |
DB1="yourDatabase1 yourDatabase2" | |
BUCKET='s3://your-bucket' | |
BACKUP_HOME='/mnt/backups' |
Most of these guidelines are to match Apple's documentation and community-accepted best practices. Some are derived some personal preference. This document aims to set a standard way of doing things so everyone can do things the same way. If there is something you are not particularly fond of, it is encouraged to do it anyway to be consistent with everyone else.
This document is mainly targeted toward iOS development, but definitely applies to Mac as well.
NSString *foo = @"bar";
mkdir ~/git/website.git && ~/git/cd website.git | |
git init --bare | |
mkdir ~/webapps/website | |
git config core.bare false | |
git config core.worktree /home/rafi/webapps/website ; NO TRAILING SLASH!!! Will screw up things real bad. | |
git config receive.denycurrentbranch ignore | |
; create a hook | |
cat > hooks/post-receive | |
#!/bin/sh |
# -------------------------------------------- | |
# General | |
# -------------------------------------------- | |
set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments. | |
set :application, "domain.com" # Application name | |
set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ... | |
# -------------------------------------------- | |
# Server | |
# -------------------------------------------- |
source ~/.git-completion.sh | |
alias gco='git co' | |
alias gci='git ci' | |
alias grb='git rb' | |