Skip to content

Commit

Permalink
Fixing website deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnfaraday committed Mar 25, 2018
1 parent b9e72a6 commit 203ec1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/website/web_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def self.rebuild_css
def self.deploy_portal(client = nil)
Global.dispatcher.spawn("Deploying website", nil) do
install_path = Global.read_config('website', 'website_code_path')
path = File.join( install_path, "bin", "deploy" )
output = `#{path} #{install_path} 2>&1`

Global.logger.info "Deployed web portal: #{output}"
client.emit_ooc t('webportal.portal_deployed', :output => output) if client
Dir.chdir(install_path) do
output = `bin/deploy 2>&1`
Global.logger.info "Deployed web portal: #{output}"
client.emit_ooc t('webportal.portal_deployed', :output => output) if client
end
end
end
end
Expand Down

0 comments on commit 203ec1b

Please sign in to comment.