Created
April 26, 2011 13:14
-
-
Save domgreen/942236 to your computer and use it in GitHub Desktop.
cloud deployment scenario using rake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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