Skip to content

Commit c1023d8

Browse files
committed
fix spelling and formatting
1 parent d00f2f4 commit c1023d8

File tree

1 file changed

+8
-11
lines changed
  • docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides

1 file changed

+8
-11
lines changed

docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/heroku.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ The purpose of this guide is to allow users to deploy Strapi applications on Her
1616

1717
:::
1818

19-
Prior to starting the deployment process each user needs:
19+
Prior to starting the deployment process, each user needs:
2020

2121
- a [Heroku account](https://signup.heroku.com/),
2222
- [Git version control](https://docs.github.com/en/get-started/quickstart/set-up-git),
2323
- an existing Strapi application.
2424

2525
## Setup a Strapi project for deployment
2626

27-
Strapi uses [environment configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md) to maintain multiple environments inside a single application. This section describes how to setup a production environment in a Strapi application.
27+
Strapi uses [environment configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md) to maintain multiple environments inside a single application. This section describes how to set up a production environment in a Strapi application.
2828

2929
1. Add a production configuration environment by creating a sub-directory `./config/env/production`.
3030
2. Create `database.js` inside the `./config/env/production` directory.
@@ -165,7 +165,7 @@ export default ({ env }) => ({
165165

166166
## Create and configure a Heroku App
167167

168-
Deploying to Heroku requires installing the CLI tool, creating an App, connecting the App to a database, and setting environment variables. At the end of the following steps a Strapi application should be successfully deployed.
168+
Deploying to Heroku requires installing the CLI tool, creating an App, connecting the App to a database, and setting environment variables. At the end of the following steps, a Strapi application should be successfully deployed.
169169

170170
### Install and use the Heroku CLI
171171

@@ -204,7 +204,6 @@ Deploying to Heroku requires installing the CLI tool, creating an App, connectin
204204

205205
2. Login to Heroku from the CLI, following the command-line instructions:
206206

207-
208207
```bash
209208
heroku login
210209
```
@@ -230,7 +229,7 @@ To initialize a local project folder with an existing Heroku project use the fol
230229
heroku git:remote -a your-heroku-app-name
231230
```
232231

233-
The local development environment is now set-up and configured to work with Heroku.
232+
The local development environment is now set up and configured to work with Heroku.
234233

235234
### Create a Heroku database
236235

@@ -265,7 +264,7 @@ The following tabs detail how to either set new values for the secrets or transf
265264

266265
:::: tabs card
267266

268-
::: tab Set new secrets Mac adn Linux
267+
::: tab Set new secrets Mac and Linux
269268

270269
The following `openssl` commands will generate random new secrets (Mac and Linux only) and set the config values:
271270

@@ -299,8 +298,6 @@ heroku config:set NODE_ENV=production
299298
On Windows, secrets can be generated manually by running `node -p "require('crypto').randomBytes(48).toString('base64');"` and subsequently set on Heroku using the command `heroku config:set SECRET_NAME=your-key-here` for each variable.
300299
:::
301300

302-
303-
304301
### Deploy an application to Heroku
305302

306303
In the project root directory run the `git push heroku HEAD:main` CLI command to push the project to the Heroku server:
@@ -310,18 +307,18 @@ In the project root directory run the `git push heroku HEAD:main` CLI command to
310307
git push heroku HEAD:main
311308
```
312309

313-
The deployment may take a few minutes. At the end, logs will display the url of the project (e.g. `https://mighty-taiga-80884.herokuapp.com`). The project can also be opened from the command line:
310+
The deployment may take a few minutes. At the end, logs will display the URL of the project (e.g. `https://mighty-taiga-80884.herokuapp.com`). The project can also be opened from the command line:
314311

315312
```bash
316313
# path: ./my-project/`
317314
heroku open
318315
```
319316

320-
The Strapi Welcome page indicates that the project is correctly set-up, configured and deployed on Heroku. Next, set up an `admin user` as the production database is brand-new and empty. Add `/admin` to the end of the website address to access the signup page.
317+
The Strapi Welcome page indicates that the project is correctly set up, configured, and deployed on Heroku. Next, set up an `admin user` as the production database is brand-new and empty. Add `/admin` to the end of the website address to access the signup page.
321318

322319
## Project updates
323320

324-
Modifications that require writing to model creation or other json files, such as creating or changing content-types, require making those changes on the local development environment and then pushing the changes to Heroku. See the documentation [FAQ for PaaS](/developer-docs/getting-started/troublshooting.md#why-are-my-application-s-database-and-uploads-resetting-on-paas) and the [FAQ for content-types in production](/developer-docs/getting-started/troublshooting.md#why-can-t-i-create-or-update-content-types-in-production-staging) for more information.
321+
Modifications that require writing to model creation or other JSON files, such as creating or changing content types, require making those changes on the local development environment and then pushing the changes to Heroku. See the documentation [FAQ for PaaS](/developer-docs/getting-started/troublshooting.md#why-are-my-application-s-database-and-uploads-resetting-on-paas) and the [FAQ for content-types in production](/developer-docs/getting-started/troublshooting.md#why-can-t-i-create-or-update-content-types-in-production-staging) for more information.
325322

326323
Further development can benefit from [version control](https://devcenter.heroku.com/articles/github-integration), or continue using `git push heroku HEAD:main` to commit and push changes to Heroku directly.
327324

0 commit comments

Comments
 (0)