Skip to content

Instantly share code, notes, and snippets.

@jason-o-matic
jason-o-matic / gist:b899dff51ce7632b6c7b
Created August 6, 2014 18:33
DocRaptor AWS migration
Estimated total time to execute: 2hr not including pre-replication
Ensure performance test make_doc script has production endpoint
Comment out deploys tests, DO NOT COMMIT
Setup SSH tunnel between AWS background-001 to Linode MySQL
Replicate Linode MySQL to AWS (3hr+) as docraptor-production
One-time copy non-queue Redis data
Verify AWS endpoint working
./script/service_test http://aws.docraptor.com && ./script/service_test https://aws.docraptor.com
require 'rubygems'
require 'doc_raptor'
TEN_SECONDS = 10
FIVE_MINUTES = 300
DocRaptor.api_key "YOUR_API_KEY_HERE"
pdf_html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><body><a href="http://google.com">google</a></body></html>'