Skip to content

Install sequence

Each step is a gate: it refuses loudly rather than letting a wrong value flow into orders. The sequence is the order the gates depend on each other.

Prefer that we do this? Managed install covers steps 1 to 4 below and the cutover, with your Sage administrator completing the prerequisites on the same call; Full install adds the Sage-side setup too. Both are one-time services, separate from the subscription: https://keywaysystems.com/pricing/#install

  1. The AWS side (provision/aws/). Two CloudFormation stacks in your account, in order: fe-keyway-access.yaml (the instance role and Keyway's fenced roles; nothing that costs money) and fe-compute.yaml (one instance with an encrypted volume, a fixed public IP, and port 22 open only to your Sage site's address for the Sage tunnel; name the stack fe-...). Point your DNS A record at the PublicIp output. provision/aws/README.md has the parameters. 0b. How the code arrives. ForgeSync is delivered as a git bundle of the release, not from a public repository. Keyway places /opt/fe-bundles/fe-core-main.bundle on the server (first through a Systems Manager session during provisioning, later with each release), the checkout's origin points at that file, and fe:update fetches from it. With FORGESYNC_RELEASE_URL and FORGESYNC_RELEASE_PUBLIC_KEY set, fe:update refreshes that file itself from the fleet receiver (checksummed, signed by Keyway and verified against the pinned key, authenticated with the beacon secret) before every deploy, so later releases need no hands on the server at all. That is why a server with no route to GitHub still updates, and why an update never pulls anything you did not receive from us. FORGESYNC_NOTICE_PUBLIC_KEY, given at the same time, is the key every notice from Keyway (a security notice, a subscription or billing notice, a release or maintenance note) must verify against before your install shows or mails it; see Contacts and roles.
  2. Box provisioning (fe-provision). Assembles the server: web server, PHP, scheduler, backups, permissions, the database. It checks first that your DNS name points at the server, and it records the domain and the database for the install, so you never type them. Run twice produces an identical box; that is the test that it worked.
  3. The install itself (php artisan fe:setup). One command, run on the server, from the code being in place to a green install check. It asks its questions as it goes, checks each answer when you give it, and remembers every stage that passes: if it stops, fix what it names and run it again, and it carries on from the stage that stopped. The stages, in order, are on What the install runs.

php artisan fe:setup --claim=<claim code> --answers=<answer file>

  • The claim code is on the ForgeSync screen in the Shopify admin (Apps, then ForgeSync) once a plan is chosen. It works once and for seven days; opening that screen again shows a fresh one. Claiming tells Keyway which server is yours, so Shopify can reach it.
  • The answer file is the one from your signup form. Leave it out and every question is asked on screen instead.

Two ordering facts the install reminds you of: - Shopify checks cannot pass until the app is installed on your store. The install prints the install link; approve it on the store and the connection arrives here by itself, even if you close the terminal. Nothing is created in Shopify and nothing is copied. - Email goes out through your own mail system by default, which only needs the app password from the prerequisites. If you chose Amazon SES instead, its production approval is a support request with a multi-day turnaround: file it early.

It also asks for two people: the account owner (billing, plan and lapse notices, a copy of every settings change) and the security contact (security advisories). They live in the contact directory on your box; Keyway holds no address for your install. See Contacts and roles.

Slack is one of the stages and is optional: skip it and warning and critical alerts go to the alert email. See Slack alerts.

  1. Settings administrators (php artisan fe:staff grant <staff id>). Reading settings in the Shopify admin is open to every staff account; changing them needs this grant. Grant it to the people who will own the install day to day. See Settings.

  2. Your storefront. Place the ForgeSync blocks in your theme. See Theme integration and the block placement checklist.

  3. Canary order + read-back (fe:sage-readback-gate). A real test order goes through checkout, exports to Sage, and is read back to confirm the external-key column echoes. No echo, no go-live: that echo is the duplicate-order protection.

  4. Go-live. The last stage of the install reads your store's order count. A store with no orders is ready once the canary passes. A store already taking orders follows the go-live cutover first, so orders from before the install still reach Sage.

If you answered "Not yet" to booking orders at install, nothing books in Sage until you turn on Book web orders in Sage on the Settings tab. Orders placed before then are held for you to decide, never booked on their own: Retry books one, the cutover books many.