Skip to content

Commit c982859

Browse files
committed
fix to build script from daemon box local change
1 parent 052424f commit c982859

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws/build.rake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ $websites = build_task('websites', [deploy_dir('rebuild'), BLOCKLY_COMMIT_TASK])
158158
RakeUtils.system 'rake', 'build'
159159

160160
if rack_env?(:production) && CDO.daemon
161-
HipChat.log "Putting <b>dashboard</b> scripts in redis..."
162-
RakeUtils.rake 'seed:script_cache_to_redis'
161+
Dir.chdir(dashboard_dir) do
162+
HipChat.log "Putting <b>dashboard</b> scripts in redis..."
163+
RakeUtils.rake 'seed:script_cache_to_redis'
164+
end
163165

164166
thread_count = 1 + (CDO.app_servers.keys.count / 10)
165167
threaded_each CDO.app_servers.keys, thread_count do |name|

0 commit comments

Comments
 (0)