-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
75 lines (74 loc) · 6.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Peach</title>
<meta name="description" content="Safely change the domain name in your database dump.">
<link href='https://fonts.googleapis.com/css?family=Bitter:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<header class="header">
<h1>- Peach -</h1>
<strong>Safely change the domain name in your database dump.</strong>
</header>
<div class="pane">
<section id="upload" class="upload">
<div class="copy">
<h2>To start, drag & drop a dump.</h2>
<small>(a .sql file)</small>
</div>
</section>
<section id="domain-form" class="domain-form">
<div class="copy">
<label for="old-domain">Change</label>
<input type="text" name="old" id="old-domain" placeholder="http://old-domain.com" />
<label for="new-domain">to</label>
<input type="text" name="new" id="new-domain" placeholder="http://new-domain.com" />
<button class="go">GO!</button>
<div class="buttons">
<a class="cancel" href="javascript:void(0)">Start Over</a>
<a class="download" href="javascript:void(0)">Download</a>
</div>
<div class="output"></div>
</div>
</section>
</div>
<footer class="footer">
<h3>About This Utility</h3>
<p>First of all, storing the domain name for your web application in the database is a really bad idea. For whatever reason WordPress does this. It also serializes content before it's inserted. So moving from one domain to another, most commonly from development to staging to production, can be a hassle. Two major things must happen for it to be a seamless migration; Find & replace the domain and fix the serialized url's containing the old domain. This tool does that for you. No need to run a bash script on every migration. Simply drag the sql dump into the square and set a new domain.</p>
<h3>Support</h3>
<p>As of now this only works best in <a href="https://www.google.com/chrome">Chrome</a>. You are on your own with the others. Depending on usage, I will look at degrading.</p>
<br />
<p>Also feel free to fork on <a href="https://github.com/petesaia/Peach">Github</a>. Unit testing can be found <a href="test/SpecRunner.html">here</a>.</p>
<br><br>
<div class="beer">
<p>If this tool saved you some headaches help a fellow starving developer buy a beer. Thanks!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBfHm4DbYd7AFMjmWS7taZSkcD+NOWQrkflN6nW5T55P+3H4wn8woC5G4wft8u/I3t9Sdk90SM4R5/hFqIoG0ii/DJ9uxMhknp+dGZZGOKCrqKvr/4yPBlMFSvrG0WY65jXQZhkNw6ygMYceD5/X8+bKbXiBiD3uDk6BnO93qSx3zELMAkGBSsOAwIaBQAwgcwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIT+GZHXjmy5aAgahTAYLoWbiMfG9IFK4SKE9AkdatmqemWpVu0CtHsBe2h9QtKd3tTKpbB4IdM40oa48r33jidiOUndOIkKEl4SJ9JKbi5gWVMiUq3CjkVcEwQiAlU+MmYAVupOlD3ZAVFF9h80M/PqcE8rlWbtDdCRH4q55ZlTqOnJ/HaqQkOK7Ca+U9p6OH2r7/1nW6zR/x+CN9uWnsC6uepN/8T4gDmHMvgxn3jN/UsC+gggOHMIIDgzCCAuygAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQY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BmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNDA3MjgyMjQzMDFaMCMGCSqGSIb3DQEJBDEWBBTAzS9UQ6ZhZQOQ+jMXyHVXiUmpijANBgkqhkiG9w0BAQEFAASBgKNi3MuwC2m3yqbIjfeIfoy4akerCaZyBEnHwjsPHTt5qgSMo1M/T1i0ALqv7EK0xNwpMsec3Dzvct4VAzQz/7Dwk3luG5VoJUybEkYJLgOD7eQ+9rmnujx39lSsqXRvCSMTcZQsVPPeMl30wCE1L2SAv6bVaQ39FUPHznxGmO35-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
<aside>
Made by <a href="https://petesaia.com">Pete Saia</a>. Made possible by <a href="http://www.html5rocks.com/en/">JavaScript & HTML5</a>.
</aside>
</footer>
<script src="assets/js/lib/jquery.js"></script>
<script src="assets/js/lib/jquery.activity-indicator-1.0.0.js"></script>
<script src="assets/js/peach.js"></script>
<script src="assets/js/filemanager.js"></script>
<script src="assets/js/ui.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-65290174-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65290174-3');
</script>
</body>
</html>