Permalink
Browse files

Defaulting to min version in prod

  • Loading branch information...
1 parent 65cf726 commit 8df7a8825fd9c7e2544f7e3667694b77f8c4d2c1 @quirkey quirkey committed Oct 25, 2011
Showing with 295 additions and 249 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 Gemfile.lock
  3. +7 −2 config/deploy.rb
  4. +281 −246 public/js/default.min.js
  5. +4 −1 views/index.haml
View
@@ -6,6 +6,7 @@ gem 'rack', '1.3.5'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'jim'
+gem 'closure-compiler'
gem 'redis'
gem 'redis-namespace'
gem 'compass'
View
@@ -4,6 +4,7 @@ GEM
archive-tar-minitar (0.5.2)
backports (2.3.0)
chunky_png (1.2.5)
+ closure-compiler (1.1.3)
columnize (0.3.4)
compass (0.11.5)
chunky_png (~> 1.2)
@@ -121,6 +122,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ closure-compiler
compass
haml
jim
View
@@ -17,10 +17,10 @@
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid"
namespace :deploy do
- task :start, :roles => :app, :except => { :no_release => true } do
+ task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && bundle exec #{unicorn_binary} -c #{unicorn_config} -E production -D"
end
- task :stop, :roles => :app, :except => { :no_release => true } do
+ task :stop, :roles => :app, :except => { :no_release => true } do
run "kill `cat #{unicorn_pid}`"
end
task :graceful_stop, :roles => :app, :except => { :no_release => true } do
@@ -43,6 +43,10 @@
task :link_configs do
run "cd #{release_path} && rm settings.yml && ln -nfs #{shared_path}/settings.yml #{release_path}/settings.yml"
end
+
+ task :compress do
+ run "cd #{release_path} && bundle exec jim compress"
+ end
end
namespace :bundler do
@@ -57,3 +61,4 @@
end
after "deploy:update_code", "graphiti:link_configs"
after "deploy:update_code", "bundler:install_gems"
+after "deploy:update_code", "graphiti:compress"
Oops, something went wrong.

0 comments on commit 8df7a88

Please sign in to comment.