Diff -- /var/www/vhosts/3dshawn.com/repricer.3dshawn.com/installation_instructions.html
Diff

/var/www/vhosts/3dshawn.com/repricer.3dshawn.com/installation_instructions.html

added on local at 2026-07-01 21:47:07

Added
+79
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 2d2d985cb651
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1<!DOCTYPE html>
2<html lang="en">
3<head>
4<meta charset="UTF-8">
5<title>RePricer - installation instructions</title>
6<style>
7 body { font-family: system-ui, -apple-system, sans-serif; max-width:780px; margin:40px auto; padding:0 20px;
8 background:#06091a; color:#e6ecf6; line-height:1.6; }
9 h1 { color:#fff; border-bottom: 2px solid #22d3ee; padding-bottom:6px; }
10 h2 { color:#22d3ee; margin-top:32px; font-size:18px; }
11 code, pre { font-family: ui-monospace, Menlo, monospace; background:#0b1226; border:1px solid #1f2a4a;
12 border-radius:6px; }
13 code { padding:2px 6px; }
14 pre { padding:14px; overflow-x:auto; font-size:13px; }
15 a { color:#22d3ee; }
16 ol li { margin:8px 0; }
17</style>
18</head>
19<body>
20
21<h1>RePricer installation</h1>
22<p>Canonical install runbook for a fresh deployment on a Plesk box.</p>
23
24<h2>1. Subdomain + DB</h2>
25<pre>plesk bin subdomain --create repricer -domain 3dshawn.com -ip $IP -www_root /var/www/vhosts/3dshawn.com/repricer.3dshawn.com
26plesk bin extension --exec letsencrypt cli.php -d repricer.3dshawn.com -m you@example.com
27plesk bin database --create repricer3dshawn -domain 3dshawn.com -server localhost -type mysql -add_user repricer -passwd 'YOUR_PASSWORD'</pre>
28
29<h2>2. Upload + perms</h2>
30<pre>remote-access.exe push --server=repricer.3DShawn.com \
31 --local-dir=./html \
32 --remote-dir=/var/www/vhosts/3dshawn.com/repricer.3dshawn.com
33
34chmod 755 .../*.cgi .../*.pl
35chown mocnwahs3d:psacln .../*.cgi .../*.pl
36chown mocnwahs3d:psaserv /var/www/vhosts/3dshawn.com/repricer.3dshawn.com # docroot dir itself</pre>
37
38<h2>3. Schema (apply in this order)</h2>
39<ol>
40 <li><code>html/db_schema.sql</code> (the 2192-line WebSTLs base; <strong>not</strong> the broken root-level one)</li>
41 <li><code>_repricer_schema.sql</code></li>
42 <li><code>_marketplace_migration.sql</code></li>
43 <li><code>_features_migration.sql</code></li>
44 <li><code>_features2_migration.sql</code></li>
45 <li><code>_billing_plans_rewrite.sql</code></li>
46</ol>
47
48<h2>4. Stripe + marketplace OAuth</h2>
49<p>Sign up + log in as the first user, promote to super-admin via SQL:</p>
50<pre>UPDATE users SET is_admin=1, is_super_admin=1 WHERE email='you@example.com';</pre>
51<p>Then paste credentials at <code>/admin_config.cgi</code>. See <code>STRIPE_SETUP.md</code> for the step-by-step Stripe section. Amazon LWA + eBay client ID rows live under their own group on the same page.</p>
52
53<h2>5. Cron</h2>
54<pre>bash _install_cron.sh</pre>
55<p>Installs five entries (repricer, billing, subscription, notifications, weekly digest). Idempotent.</p>
56
57<h2>6. Smoke test</h2>
58<ol>
59 <li>Sign up a test user via <code>/signup.cgi</code>.</li>
60 <li>Connect Amazon / eBay / Walmart on <code>/marketplaces.cgi</code>.</li>
61 <li>Import a few SKUs via the ASIN bulk-import on <code>/products.cgi</code>.</li>
62 <li>Create one repricing rule.</li>
63 <li>Enable repricing on a product.</li>
64 <li>Wait for the next 5-min cron tick; check <code>reprice_runs</code> + <code>price_changes</code>.</li>
65 <li>Visit <code>/admin_health.cgi</code> -- all green dots.</li>
66</ol>
67
68<h2>Reference</h2>
69<ul>
70 <li>Architecture overview: project's <code>CLAUDE.md</code></li>
71 <li>Stripe setup: <code>STRIPE_SETUP.md</code></li>
72 <li>Marketplace API research: <code>MARKETPLACE_API_RESEARCH.md</code></li>
73 <li>Public status page: <a href="/status.cgi">/status.cgi</a></li>
74 <li>Admin platform health: <a href="/admin_health.cgi">/admin_health.cgi</a></li>
75 <li>Public changelog: <a href="/changelog.cgi">/changelog.cgi</a></li>
76</ul>
77
78</body>
79</html>
Keyboard: j next diff k previous diff g top G bottom r restore c compile-check ? help