Permalink
Browse files

cfoundry - Don't bundle assets/test/dev gems; fix to database.yml

  • Loading branch information...
1 parent c13c044 commit bd727dbc6396f66fe7466bb619baf427dc5af8e0 @drnic committed Nov 9, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 scrolls/cfoundry.rb
View
@@ -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
@@ -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__

0 comments on commit bd727db

Please sign in to comment.