Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
add option to skip deploy, for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mooktakim committed Mar 22, 2011
1 parent ab11507 commit 3835606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/heroku_deployment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def generate_css_and_js
system %(rm #{(js_files.collect{|j| "public/javascripts/#{j}"} + css_files.collect{|c| "public/stylesheets/#{c}"}).join(" ")} 2> /dev/null)
HerokuDeployment::Config.commit_files << 'public/javascripts/'
HerokuDeployment::Config.commit_files << 'public/stylesheets/'
puts %(Running: \nRAILS_ENV=production ./script/rails runner "Rails.application.config.action_controller.perform_caching = false; require 'rails/console/app' ; app.get '#{HerokuDeployment::Config.generate_url}'")
res = !!system(%(RAILS_ENV=production ./script/rails runner "Rails.application.config.action_controller.perform_caching = false; require 'rails/console/app' ; app.get '#{HerokuDeployment::Config.generate_url}'"))
(js_files.collect{|j| "public/javascripts/#{j}"} + css_files.collect{|c| "public/stylesheets/#{c}"}).each do |f|
unless File.exist?(f)
Expand Down

0 comments on commit 3835606

Please sign in to comment.