Թողարկման նշումներ
The new sites design: the preview and the live site both run in the client's own hosting account, and the preview opens in a new tab. This release breaks the 1.x set-up (see "Upgrading").
Changed
- The live site and its private preview are two websites of one hosting account, each with its own database. The host creates them for the plugin (
IPluginHostHostingApi:EnsureWebsiteAsync,EnsureDatabaseAsync) and innovayse-sites sets each environment up with the database (POST /api/v1/sites/{id}/{stage|prod}/prepare). The live website is the service's domain with the document rootsites/live/current/public, the preview ispreview.<domain>withsites/preview/current/public; both document roots may be links, and the PHP version is the highest the account offers that is 8.3 or newer. - Creating a site is resumable, with recorded states
Targeted,WebsitesReady,LivePreparedandReady. One SSH deploy key is issued, for the live account only, and the target is set withPUT /api/v1/sites/{id}/targets/prodand the preview domain. A failed or cut-off call is finished by the next one from where it stopped. A database whose password was lost (the host returns it once) is removed and made again, a database whose preparing failed is removed, and the password lives in memory only. The old two-call flow with a stage account is gone; the create call answers the finished site, or a problem. - What the account can do is checked before any step has a side effect (
GetHostingCapabilitiesAsync): a host without hosting access, or an account without SSH, websites or databases, or without PHP 8.3 or newer, answers one sentence and issues no SSH key. One mapper turns every refusal of the host into its sentence; the reasonsInvalidRequestandConflicthave their own sentences. - The builder's frame shows the live site only. Preview is an action in the header that asks
POST /services/{serviceId}/site/preview-linkfor a link and opens it in a new tab (openUrlFrom: "url"); it shows whilecanPreviewof the builder state is true. The route answers{ "url", "expiresAt" }, only for a link whose host is the site's own preview domain, and never logs the link. - The manifest asks for
hostAccessssh,websitesanddatabasesand requires Hostpanel 0.7.0 or later (minHostVersion). The texts, in en, ru and hy, speak of the preview instead of a stage. The plugin is built onHostpanel.Sdk3.10.0. - The site route no longer answers
stageUrl;liveStageis nowlivePreview. A version shown as on the preview reads "On preview".
Removed
- The stage product: the setting
stageProductIds, the stage account of a site, the stage claims in the plugin store, the stage address and the two-call creation. Remove the AI Hosting stage product from the storefront. - Element selection on the builder preview (innovayse/hostpanel-sites#933): the preview selection,
POST /services/{serviceId}/site/selection, the selection body of a chat message, the edit scope calls to innovayse-sites and the scoped-edit reason of a failed check.
Upgrading
- Needs innovayse-sites with the preview domain, the prepare route and the preview link, and a host with hosting access and
openUrlFrom. Deploy those first. - A site created by 1.x keeps working. A creation that 1.x left half done (
StageBound) reads asCreatingand starts over; the SSH key it issued on the stage account is not known to the plugin any more and stays for the client to remove in the hosting panel.
Տեղադրել այս տարբերակը
- 1
Բացեք պլագինների ցանկը Hostpanel-ի ադմինում։
- 2
Տեղադրեք «innovayse-sites» նույնացուցիչով պլագինը և ընտրեք 2.0.0 տարբերակը։
- 3
Hostpanel-ը ռեեստրից ներբեռնում է այս ստորագրված փաթեթը և բեռնելուց առաջ ստուգում ստորագրությունը և SDK-ի տարբերակը։