Skip to content

Instantly share code, notes, and snippets.

@domgreen
Created April 26, 2011 13:14
Show Gist options
  • Save domgreen/942236 to your computer and use it in GitHub Desktop.
Save domgreen/942236 to your computer and use it in GitHub Desktop.
cloud deployment scenario using rake
def deploy_to_cloud
exec "cspack #{CSDEF} /role:WorkerRole1;#{WORKER_ROLE_DIR};#{WORKER_ROLE_DLL} /role:WebRole1;#{WEB_ROLE_DIR} /sites:WebRole1; Web;c:\web /out:#{CSPKG_FILE}"
exec "#{PACKAGE_UPLOADER_EXE} #{CSPKG_FILE} #{ACCOUNT_CONNECTION_STRING}"
exec "#{SUSPEND_COMMAND}"
exec "#{DELETE_COMMAND}"
exec "#{CREATE_COMMAND}"
exec "#{RUN_COMMAND}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment