Skip to content

Commit

Permalink
when build project set ENV["RACK_ENV"] = "production"
Browse files Browse the repository at this point in the history
  • Loading branch information
tka committed Jul 7, 2012
1 parent 4227d53 commit 1db7526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile_version.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
module CompileVersion module CompileVersion
REVISION = 'bcfc3f16b2' REVISION = '4227d53667'
COMPILE_TIME = '201206251535' COMPILE_TIME = '201206251628'
UPDATE_URL = '' UPDATE_URL = ''
end end
2 changes: 2 additions & 0 deletions src/ui/tray.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def write_dynamaic_file(release_dir, request_path )


def build_project_handler def build_project_handler
Swt::Widgets::Listener.impl do |method, evt| Swt::Widgets::Listener.impl do |method, evt|
ENV["RACK_ENV"] = "production"
App.try do App.try do


project_path = File.expand_path(Compass.configuration.project_path) project_path = File.expand_path(Compass.configuration.project_path)
Expand Down Expand Up @@ -451,6 +452,7 @@ def build_project_handler
end_build_project=Time.now end_build_project=Time.now
report_window.append "Done!" report_window.append "Done!"
end end
ENV["RACK_ENV"] = "development"
end end


end end
Expand Down

0 comments on commit 1db7526

Please sign in to comment.