Skip to content

Commit

Permalink
Added logging for more information during rails setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Feb 2, 2012
1 parent fe933c6 commit e6533b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rails/bin/rvm/setup
Expand Up @@ -4,6 +4,6 @@ typeset -gx rvm_is_not_a_function

rvm_is_not_a_function=0

# $HOME/.rvm/bin/rvm ${ruby_string}
log "Setting ${ruby_string} to default (this will install if not installed and thus may take a while so please be patient)."
$HOME/.rvm/bin/rvm alias create default ${ruby_string}

18 changes: 18 additions & 0 deletions rails/bin/setup
Expand Up @@ -4,17 +4,28 @@ if user is root ; then log error "May only be run as root." ; fi

if ! file exists "${HOME}/.env"
then
log "Installing ~/.env environment file"
template install "rails/env" to "${HOME}/.env" mode 0640 \
variables port "${port:=6000}"
fi

# First ensure that ~/.smrc exists and is setup.
log "Setting up ~/.smrc"
sm rails smrc

log "Configuring profiles"
sm rails profiles configure

log "Configuring ~/shared"
sm rails shared configure

log "Configuring database"
sm rails database configure

log "Configuring ~/.rvmrc"
sm rails rvm configure

log "Installing deploy hooks ~/shared/deploy/{before_release, after_release}."
for file in before_release after_release
do
if ! file exists "${shared_path}/deploy/${file}"
Expand All @@ -28,12 +39,19 @@ done
if ! path exists "$shared_path/$project"
then fetch_uri "$repository_url" "$shared_path/$project" ${scm_flags[@]} ; fi

log "Installing RVM"
sm rails rvm install

log "Setting up RVM"
sm rails rvm setup

log "Setting up application server"
setup_application_server || true

log "Installing deploy extension"
sm ext install deploy

log "Running initial deploy"
sm deploy

bootstrap_gems
Expand Down

0 comments on commit e6533b4

Please sign in to comment.