Skip to content

Instantly share code, notes, and snippets.

View BrianGilbert's full-sized avatar

Brian Gilbert BrianGilbert

View GitHub Profile
@BrianGilbert
BrianGilbert / gitlab
Created August 13, 2012 23:09
Gitlab initd script for Aegir box
#! /bin/bash
### BEGIN INIT INFO
# Provides: gitlab
# Required-Start: $local_fs $remote_fs $network $syslog redis-server
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: GitLab git repository management
# Description: GitLab git repository management
### END INIT INFO
@BrianGilbert
BrianGilbert / gitlab.domain.com
Created August 13, 2012 23:08
Gitlab vhost for Aegir box
upstream gitlab {
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen *:80;
server_name gitlab.domain.com;
root /home/gitlab/gitlab/public;
# individual nginx logs for this gitlab vhost
@BrianGilbert
BrianGilbert / redis-gitlab
Created August 13, 2012 23:06
Redis Gitlab initd for Aegir box
### BEGIN INIT INFO
# Provides: redis-server-gitlab
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
# Description: redis-server - Persistent key-value db
@BrianGilbert
BrianGilbert / sdo.make
Created March 23, 2012 17:52
supportDO make
core = 7.x
api = 2
; Drupal core
projects[drupal][type] = 'core'
projects[drupal][version] = '7.12'
; Install profile
projects[sdo][type] = 'profile'
projects[sdo][download][type] = 'git'
@BrianGilbert
BrianGilbert / gist:1679625
Created January 25, 2012 23:22
php issue with install
>>>> Create symbolic link for it in /usr/local/etc/
[localhost] sudo: ln -s /usr/local/Cellar/php/5.3.9/etc/php-fpm.conf /usr/local/etc/php-fpm.conf
>>>> Edit the conf file
$ nano /usr/local/etc/php-fpm.conf
Add the following line below ;pid = run/php-fpm.pid
pid = /usr/local/var/run/php-fpm.pid
Update the user and group section as follows
user = _www
group = _www
Remove the ; from the start of the following lines then save using Ctrl+X then Y