Prior to starting this project I had written zero lines of bash. If you see glaring mistakes with my bash, or recommendations for more succinct bash send a pull request.
NOTE: Much of the installation/update process will be automated in the future.
- git clone https://github.com/bravenet/aed.git ~/.aed
- export PATH=~/.aed/bin:$PATH
You can track upstream changes by using git to pull them down at your leisure.
NOTE: Much of the manual project configuration will be automated in the future.
AED looks for an Aedfile inside your project. The Aedfile describes how to bring life to your project.
A sample Aedfile will look like this
$ cat Aedfile
# vim: ft=sh
defib 'mongodb'
defib 'redis'
defib 'mysql'
With an Aedfile located in the root of your project you can breath life and bootstrap your project using the defib command.
$ defib
______ _____
/\ | ____|| __ \
/ \ | |__ | | | |
/ /\ \ | __| | | | |
/ ____ \ | |____ | |__| |
/_/ \_\|______||_____/
Automated External
Defibrillator
>> Detecting platform...
>> Detected 'osx'
>> Looking for package manager...
>> Detected 'homebrew'.
>> Shocking project to life with 'homebrew' on 'osx' ... CLEAR!!!
>> Updating homebrew...
Already up-to-date.
>> Installing git hooks...
>> Installing mongodb...
>> already installed, skipping.
>> Installing redis...
==> Downloading http://redis.googlecode.com/files/redis-2.6.4.tar.gz
######################################################################## 100.0%
==> make -C /private/tmp/redis-eC5J/redis-2.6.4/src CC=cc
==> Your redis.conf will not work with 2.6; moved it to redis.conf.old
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/redis/2.6.4/homebrew.mxcl.redis.plist ~/Library/LaunchA
gents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
If this is an upgrade and you already have the homebrew.mxcl.redis.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
cp /usr/local/Cellar/redis/2.6.4/homebrew.mxcl.redis.plist ~/Library/LaunchA
gents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
To start redis manually:
redis-server /usr/local/etc/redis.conf
To access the server:
redis-cli
==> Summary
/usr/local/Cellar/redis/2.6.4: 9 files, 740K, built in 5 seconds
>> It lives!!
See the wiki for advanced usage topics.
Many thanks are due to Brian Stolz with whom I bounced many ideas off of, and who helped conceive of the modules concept and layout.