Skip to content

Commit

Permalink
Merge pull request #1865 from strapi/cloud/templates
Browse files Browse the repository at this point in the history
Templates documentation for Strapi Cloud
  • Loading branch information
meganelacheny authored Oct 12, 2023
2 parents 860ca7d + 71114b5 commit 1ba22bd
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions docusaurus/docs/cloud/getting-started/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,59 @@ Before you can deploy your Strapi application on Strapi Cloud, you need to have

4. Connect a GitHub repository to your new Strapi Cloud project.

4.a. Click on the **Connect GitHub repositories** button. You will be redirected to a GitHub modal to authorize Strapi Cloud to access your repository.
:::strapi Choose your path to create your new Strapi Cloud project!
Select one of the tabs below depending on how you wish to proceed:
- by using a prebuilt template and creating a new GitHub repository to discover Strapi Cloud easily and quickly *(recommended for new users and beginners)*,
- or by using your own, already existing GitHub repository and Strapi project.
:::

<Tabs groupId="REPO-OPTIONS">

<TabItem value="TEMPLATE" label="New repo & prebuilt template ✨">

4.a. Click on the **Use template** button.

4.b. In the *Create repository with template* modal, choose:

- the GitHub account where the repository will be created
- the template to use for the new project (e.g. Blog)

<ThemedImage
alt="Create repo with template modal"
width="60%"
sources={{
light: '/img/assets/cloud/template-modal.png',
dark: '/img/assets/cloud/template-modal_DARK.png',
}}
/>

4.c. Click on the **Create repository** button. A modal will confirm the creation of the repository.

4.d. If you have already given Strapi Cloud access to all repositories of your GitHub account, go directly to the next step. If not, you will be redirected to a GitHub modal where you will have to allow Strapi Cloud access to the newly created repository (more information in the [GitHub documentation](https://docs.github.com/en/apps/overview)).

4.e. Back in the project creation interface, select your *Account* and the *Repository* you just created.

<ThemedImage
alt="Selecting GitHub account and repository"
sources={{
light: '/img/assets/cloud/account-repo-selection.png',
dark: '/img/assets/cloud/account-repo-selection_DARK.png',
}}
/>

</TabItem>

<TabItem value="OWN-REPO" label="Own existing repo & Strapi project">

4.a. Click on the **Connect GitHub repositories** button.

:::tip
Connect the GitHub account and/or organizations that own the repository or repositories you want to deploy. This can be different from the account that owns the Strapi Cloud account.
:::

4.b. Once Strapi Cloud is allowed permission to access the GitHub repositories, go back to the Strapi Cloud project creation interface to select an *Account* and *Repository*.
4.b. If you have already given Strapi Cloud access to all repositories of your GitHub account, go directly to the next step. If not, you will be redirected to a GitHub modal where you will have to allow Strapi Cloud permission to access your repositories (more information in the [GitHub documentation](https://docs.github.com/en/apps/overview)).

4.c. Back in the project creation interface, select your *Account* and a *Repository*.

<ThemedImage
alt="Selecting GitHub account and repository"
Expand All @@ -79,6 +125,10 @@ Before you can deploy your Strapi application on Strapi Cloud, you need to have
}}
/>

</TabItem>

</Tabs>

5. Set up your Strapi Cloud project.

5.a. Fill in the following information:
Expand Down
Binary file modified docusaurus/static/img/assets/cloud/project-creation-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docusaurus/static/img/assets/cloud/project-creation-1_DARK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 1ba22bd

@vercel
Copy link

@vercel vercel bot commented on 1ba22bd Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app
docs-vercel-v4.strapi.io

Please sign in to comment.