Add instructions to run app as Docker container (#68)

This commit is contained in:
shm
2017-11-16 13:37:19 +01:00
committed by Khaled Garbaya
parent 4487b8e5e4
commit 81d5233d93

View File

@@ -52,7 +52,7 @@ To start the express server, run the following
npm run start:dev
```
Open [http://localhost:3000](http://localhost:3000) and take a look around.
Open [http://localhost:3000](http://localhost:3000) and take a look around.
## Steps for read and write access (recommended)
@@ -71,7 +71,7 @@ Step 4: Seed the new space with the content model. Replace the `SPACE_ID` with t
```
contentful space seed -s '<SPACE_ID>' -t the-example-app
```
Step 5: Head to the Contentful web app's API section and grab `SPACE_ID`, `DELIVERY_ACCESS_TOKEN`, `PREVIEW_ACCESS_TOKEN`.
Step 5: Head to the Contentful web app's API section and grab `SPACE_ID`, `DELIVERY_ACCESS_TOKEN`, `PREVIEW_ACCESS_TOKEN`.
Step 6: Open `variables.env` and inject your credentials so it looks like this
@@ -96,13 +96,6 @@ You can also deploy this app to Heroku:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
Open [http://localhost:3000?enable_editorial_features](http://localhost:3000?enable_editorial_features) and take a look around. This URL flag adds an “Edit” button in the app on every editable piece of content which will take you back to Contentful web app where you can make changes. It also adds “Draft” and “Pending Changes” status indicators to all content if relevant.
## Deploy to Heroku
You can also deploy this app to Heroku:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
## Use Docker
You can also run this app as a Docker container: