4
source "$(dirname $0)/common.sh"
6
juju-log 'Add chris-lea node.js ppa'
7
add-apt-repository -y ppa:chris-lea/node.js
10
juju-log "Install dependencies"
11
apt-get install -y -qq build-essential libsqlite3-dev libmysql++-dev libpq-dev nodejs
13
juju-log "Install extra packages"
14
[[ -z $extra_packages ]] || apt-get -y install -qq $extra_packages
16
juju-log "install bundler"
17
gem install bundler --no-rdoc --no-ri
20
apt-get -y install -qq git-core
22
git clone $repo_url -b $repo_branch $root
25
apt-get -y install -qq bzr
27
bzr branch $repo_url $root
30
apt-get install -y -qq subversion
32
if [[ ($repo_branch == 'trunk') || (-z $repo_branch) ]]; then
33
svn co "$repo_url/trunk" $root
35
svn co "$repo_url/branches/$repo_branch" $root
39
juju-log "Install rails app into $root"
52
#touch $root/log/production.log
53
#chmod 0666 $root/log/production.log
58
[ -d $root ] || install_app
b'\\ No newline at end of file'
4
source "$(dirname $0)/bootstrap"
6
juju_chef-solo -o "recipe[juju::bootstrap],recipe[rack::install]"