Skip to content

Correct the project directory from api to bookshop-api the example project #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions deployment/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ If you don't already have one, [create an account on Heroku](https://signup.hero
toolbelt](https://devcenter.heroku.com/articles/getting-started-with-php#set-up). We're guessing you already
have a working install of [Composer](http://getcomposer.org). Perfect, we will need it.

Create a new API Platform project as usual:

composer create-project api-platform/api-platform
Create a new [API Platform project](distribution/index.md#using-the-official-distribution-recommended) which will be used in the rest of this example

Heroku relies on [environment variables](https://devcenter.heroku.com/articles/config-vars) for its configuration. Regardless
of what provider you choose for hosting your application, using environment variables to configure your production environment
is a best practice supported out of the box by API Platform.
is a best practice promoted by API Platform.

Create a Heroku's `app.json` file at the root of the `api/` directory to configure the deployment:

Expand Down Expand Up @@ -122,7 +120,7 @@ Go to the `api/` directory, then

git push heroku master

**We're done.** You can play with the demo bookstore API provided with API Platform. It is ready for production and you
**We're done.** You can play with the demo API provided with API Platform. It is ready for production and you
can scale it in one click from the Heroku interface.

To see your logs, run `heroku logs --tail`.