Example #1
0
def upload_images(account_name, account_key):
    stb = SitesToAzureBlob('../src/juicebox/', 
                           '../output/gallery', overwrite_output = False,
                           account_name = account_name, account_key = account_key,
                           container_name = 'gallery')

    stb.upload_files_to_blob()
Example #2
0
def main():
    stb = SitesToAzureBlob('../yuqingzhang.com/src/main', '../yuqingzhang.com/output', overwrite_output = False, account_name = 'zhangyuqinglabs', account_key = 'zbC/2jangIEmAeKVE0c7KybQl8TwgEkGIK5tpnTJku0CUudDZR/mytqtJw2I/OiwKFZVMiVVWYKVjxMwpUQQbQ==',
                         container_name = 'site')
    stb.upload_files_to_blob()
Example #3
0
    #update_config_xml(r'../src/main/footprints/2013-06-paris-france/config.xml',r'http://zhangyuqinglabs.blob.core.windows.net/gallery/', r'2013-06-paris-france');
    ##update_config_xml(r'../src/main/footprints/2013-01-milano-italy/config.xml',r'http://zhangyuqinginfo.blob.core.windows.net/gallery/', r'2013-01-milano-italy');

    #create_index_page('../src/main/footprints', '2013-06-paris-france', 'Paris, France')
    ##create_index_page('../src/main/footprints', '2013-01-milano-italy', 'Milano, Italy')
    #print 'Juciebox Processed...'
    
    #upload_images(account_name, account_key)
    
    try:
        call_pelican('Pelican/settings.py', '../src/Pelican') 
    except Exception, e:
        if e[0] ==5 and e[1] == 'Access is denied':
            try:
                call_pelican('Pelican/settings.py', '../src/Pelican') 

            except Exception, e:
                if e[0] ==5 and e[1] == 'Access is denied':
                    try:
                        call_pelican('Pelican/settings.py', '../src/Pelican') 

                    except Exception, e:
                        raise
    
    print 'Pelican Processed...'

    stb = SitesToAzureBlob('../src/main', '../output', overwrite_output=False, account_name = account_name, account_key = account_key, container_name = 'site')
    stb.upload_files_to_blob()

if __name__ == "__main__":
    main(account_name='zhangyuqinglabs', account_key='mnQomACu6uYI1rJaLtR1ObumgxXdo6Fly3klTizyelefCAh1kZ+NNwodM8VGPs/mjnMiE9WfcPKZF0S5KgWM5Q==')