Skip to content

Commit 00e8626

Browse files
mariekirschpwizla
authored andcommitted
Async project creation on Strapi Cloud (#2581)
* chore: updated account repository selection images * feat: documentation for async project creation * feat: documentation for async environment creation * Apply suggestions from code review Co-authored-by: Pierre Wizla <[email protected]> --------- Co-authored-by: Pierre Wizla <[email protected]>
1 parent d2ca8cb commit 00e8626

File tree

8 files changed

+34
-17
lines changed

8 files changed

+34
-17
lines changed

docusaurus/docs/cloud/getting-started/deployment.md

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
2323

2424
* Strapi version `4.8.2` or higher
2525
* Project database must be compatible with PostgreSQL. Strapi does not support and does not recommend using any external databases, though it's possible to configure one (see [advanced database configuration](/cloud/advanced/database)).
26-
* Project(s) source code hosted on <ExternalLink to="https://github.com" text="GitHub"/> or <ExternalLink to="https://about.gitlab.com/" text="GitLab"/>. The connected repository can contain multiple Strapi applications. Each Strapi app must be in a separate directory.
26+
* Project source code hosted on <ExternalLink to="https://github.com" text="GitHub"/> or <ExternalLink to="https://about.gitlab.com/" text="GitLab"/>. The connected repository can contain multiple Strapi applications. Each Strapi app must be in a separate directory.
2727
* Specifically for GitLab: at least have "<ExternalLink to="https://docs.gitlab.com/ee/user/permissions.html" text="Maintainer"/>" permissions for the project to import on Strapi Cloud.
2828
:::
2929

@@ -41,7 +41,7 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
4141
}}
4242
/>
4343

44-
## Deploying a project
44+
## Creating a project {#deploying-a-project}
4545

4646
1. From the *Projects* page, click the **Create project** button.
4747

@@ -53,7 +53,7 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
5353
}}
5454
/>
5555

56-
2. You will be redirected to the first project deployment interface. This interface contains 3 steps: choosing a plan, connecting a remote git repository, and setting up the project.
56+
2. You will be redirected to the project creation interface. This interface contains 3 steps: choosing a plan, connecting a remote git repository, and setting up the project.
5757

5858
<ThemedImage
5959
alt="Strapi Cloud project creation, step 1"
@@ -115,7 +115,7 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
115115
4.a. (optional) If you are deploying a project for the first time, you may first have to select a git provider: either GitHub or GitLab. If you already deployed a project with one git provider, you can afterward deploy another project using another provider by clicking on the **Switch git provider** button and selecting either GitHub or GitLab.
116116

117117
:::tip
118-
Connect the GitHub or GitLab 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.
118+
Connect the GitHub or GitLab account and/or organizations that owns the repository or repositories you want to deploy. This can be different from the account that own the Strapi Cloud account.
119119
:::
120120
:::note
121121

@@ -145,12 +145,12 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
145145
| Setting name | Instructions |
146146
|--------------|---------------------------------------------------------------------------------------------------------|
147147
| Display name | Write the name of your Strapi app, this is fetched from the repository name but can be edited. It is automatically converted to slug format (`my-strapi-app`). |
148-
| Git branch | Choose from the drop-down the default branch to use for this deployment. This uses the default branch of the repository. |
149-
| Deploy on push | Check the box to automatically deploy the latest changes from the selected branch. When disabled, you will need to manually deploy the latest changes. |
148+
| Git branch | Choose from the drop-down the branch you want to deploy. |
149+
| Deploy on push | Tick this box to automatically trigger a deployment when changes are pushed to your selected branch. When disabled, you will need to manually deploy the latest changes. |
150150
| Region | Choose the geographic location of the servers where your Strapi application is hosted. Selected region can either be US (East), Europe (West), Asia (Southeast) or Oceania. |
151151

152152
:::note
153-
The Git branch and "Deploy on push" settings can be modified afterwards through the project's setting, however the hosting region can only be chosen during the creation of the project (see [Project Settings](/cloud/projects/settings)).
153+
The Git branch and "Deploy on push" settings can be modified afterwards through the project's settings, however the hosting region can only be chosen during the creation of the project (see [Project Settings](/cloud/projects/settings)).
154154
:::
155155

156156
5.b. (optional) Click on **Show advanced settings** to fill in the following options:
@@ -167,7 +167,7 @@ Before you can deploy your Strapi application on Strapi Cloud using the Cloud da
167167
|--------------|---------------------------------------------------------------------------------------------------------|
168168
| Base directory | Write the name of the directory where your Strapi app is located in the repository. This is useful if you have multiple Strapi apps in the same repository or if you have a monorepo. |
169169
| Environment variables | Click on **Add variable** to add environment variables used to configure your Strapi app (see [Environment variables](/cms/configurations/environment/) for more information). You can also add environment variables to your Strapi application by adding a `.env` file to the root of your Strapi app directory. The environment variables defined in the `.env` file will be used by Strapi Cloud. |
170-
| Node version | Choose a Node version from the drop-down. Default Node version will automatically be chosen to best match the version of your Strapi project. If you manually choose a version that doesn't match with your Strapi project, the build will fail but the explanation will be displayed in the build logs. |
170+
| Node version | Choose a Node version from the drop-down. The default Node version will automatically be chosen to best match the version of your Strapi project. If you manually choose a version that doesn't match with your Strapi project, the build will fail but the explanation will be displayed in the build logs. |
171171

172172
:::strapi Using Environment Variables
173173
You can use environment variable to connect your project to an external database rather than the default one used by Strapi Cloud (see [database configuration](/cms/configurations/database#environment-variables-in-database-configurations) for more details). If you would like to revert and use Strapi's default database again, you have to remove your `DATABASE_` environment variables (no automatic migration implied).
@@ -182,7 +182,7 @@ If you chose the free plan, this billing step will be skipped as you will not be
182182

183183
To upgrade your project to a paid plan, you will need to fill in your billing information in the **Billing** section of your Profile.
184184

185-
<Icon name="fast-forward" /> Skip to step 5 of the section below to finalise the creation of your project.
185+
<Icon name="fast-forward" /> Skip to step 5 of the section below to finalize the creation of your project.
186186
:::
187187

188188
1. Click on the **Continue to billing** button. You will directly be redirected to the second and final project deployment interface. There you can review all your new project setup information, enter payment & billing details and receive your invoice.
@@ -195,18 +195,35 @@ To upgrade your project to a paid plan, you will need to fill in your billing in
195195
}}
196196
/>
197197

198-
2. Review your project: make sure the plan and setup information are correct. If needed, click the <Icon name="pencil-simple" /> **Edit** button to be redirected to the first interface of the project creation and fix any mistake.
198+
2. Review your project: make sure the plan and setup information are correct. If needed, click the <Icon name="pencil-simple" /> **Edit** button to navigate back to the first step of the project creation and fix any mistake.
199199

200200
3. In the Payment section, fill in at least all mandatory elements for *Payment method* and *Billing information*.
201201

202202
4. Check your invoice which informs you of what should be paid now and the following month. Optionally, you can enter a *Discount code* if you have one.
203203

204-
5. Click on the **Create project** button to finalize the deployment of your new Strapi Cloud project. An initial deployment will automatically be triggered and you will be redirected to the *Projects* page.
204+
5. Click on the **Create project** button to finalize the creation of your new Strapi Cloud project.
205205

206-
:::caution
207-
Create your Admin user after the initial deployment is complete. Do not share your application URL with anyone until you have created your Admin user.
206+
## Deploying your project
207+
208+
After confirming the project creation, you will be redirected to your *Project dashboard* where you will be able to follow its creation and first deployment.
209+
210+
While your project is deploying, you can already start configuring some of your [project settings](/cloud/projects/settings).
211+
212+
<ThemedImage
213+
alt="Project creation steps"
214+
sources={{
215+
light: '/img/assets/cloud/project-creation-3.png',
216+
dark: '/img/assets/cloud/project-creation-3_DARK.png',
217+
}}
218+
/>
219+
220+
:::note
221+
If an error occurs during the project creation, the progress indicator will stop and display an error message. You will see a **Retry** button next to the failed step, allowing you to restart the creation process.
208222
:::
209223

224+
Once you project is successfully deployed, the creation tracker will be replaced by your deployments list and you will be able to visit your Cloud hosted project. Don't forget to create the first Admin user before sharing your Strapi project.
225+
226+
210227
## <Icon name="fast-forward" /> What to do next?
211228

212229
Now that you have deployed your project via the Cloud dashboard, we encourage you to explore the following ideas to have an even more complete Strapi Cloud experience:

docusaurus/docs/cloud/projects/settings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ To create a new environment:
143143
| Git branch | (mandatory) Select the right branch for your new environment. |
144144
| Base directory | Write the name of the base directory of your new environment. |
145145
| Import variables | Tick the box to import variable names from an existing environment. Values will not be imported, and all variables will remain blank. |
146-
| Auto-deploy | Tick the box to automatically trigger a new deployment whenever a new commit is pushed to the selected branch. Untick it to disable the option. |
146+
| Deploy on push | Tick this box to automatically trigger a deployment when changes are pushed to your selected branch. When disabled, you will need to manually deploy the latest changes. |
147147

148-
4. Click on the **Add environment** button to create your project's new environment. A new deployment will automatically be triggered.
148+
4. Click on the **Add environment** button to create your project's new environment. You will then be redirected to your *Project dashboard* where you will be able to follow your new environment's creation and first deployment.
149149

150-
:::caution
151-
If the creation of a new environment fails but you are still charged, try creating the environment again. This time, the environment creation should be successful and you will not be charged a second time. This behaviour is an known issue that should be fixed in the upcoming weeks.
150+
:::note
151+
If an error occurs during the environment creation, the progress indicator will stop and display an error message. You will see a **Retry** button next to the failed step, allowing you to restart the creation process.
152152
:::
153153

154154
### Billing & Usage
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)