Skip to content

Commit

Permalink
cfoundry - Don't bundle assets/test/dev gems; fix to database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Nov 9, 2012
1 parent c13c044 commit bd727db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scrolls/cfoundry.rb
Expand Up @@ -26,8 +26,8 @@
database: <%= db_svc[:database] rescue '#{project_name}_production' %>
username: <%= db_svc[:username] rescue '#{db_username}' %>
password: <%= db_svc[:password] rescue '#{db_password}' %>
<%= db_svc[:host] ? "host: \#{db_svc[:host]}" : "" %>
<%= db_svc[:port] ? "post: \#{db_svc[:port]}" : "" %>
<%= db_svc && db_svc[:host] ? "host: #{db_svc[:host]}" : "" %>
<%= db_svc && db_svc[:port] ? "post: #{db_svc[:port]}" : "" %>
YAML
end
end
Expand All @@ -39,7 +39,9 @@
run "mkdir -p deploy"
run "cp #{project_name}.war deploy/"
end
run "vmc push #{project_name} --runtime ruby19 --path ."
run "vmc push #{project_name} --runtime ruby19 --path . --no-start"
run "vmc env-add #{project_name} BUNDLE_WITHOUT=assets:test:development"
run "vmc start #{project_name}"
end

__END__
Expand Down

0 comments on commit bd727db

Please sign in to comment.