Commit 75bf6772 authored by alain's avatar alain 🐙
Browse files

update readme's

parent 1c58be05
......@@ -8,27 +8,23 @@ A separate nginx Docker container serves the files generated by the Gatby build
### build docker image
```shell
./build.sh
```
Builds Docker image from the Dockerfile.
### start docker containers
```shell
./up.sh
```
Starts two containers:
- container with Strapi and Gatsby (note: db/uploads/env file should be present)
- container with nginx
- container with Strapi and Gatsby (note: /backend/db, /backend/public/uploads/ & /backend/.env should be present in directory)
- container with nginx (serves whatever is present in Docker volumne 'public-stack-site-volume', mapped to Gatby build folder /frontend/public)
### stop docker containers
```shell
./down.sh
```
......
......@@ -2,20 +2,28 @@
## commands
### install
```shell
yarn develop
yarn install
```
Installs the Strapi app and all of its dependencies
Start Strapi development server at (http://localhost:1337/)
### develop
```shell
yarn develop
```
Start Strapi development server (on port 1337)
Access admin at http://localhost:1337/admin
### start
```shell
yarn start
```
Start Strapi in production mode
Start Strapi in production mode (on port 1337)
Access admin at /admin
### build
```shell
yarn build
```
Build the backend app
Build the backend app. This is done whenever the Docker image is built. It can also be done in development when changes are made to the Strapi app iteself.
......@@ -2,11 +2,17 @@
## commands
### install
```shell
yarn install
```
Installs the Gatsby app and all of its dependencies
### develop
```shell
yarn develop
```
Start development server (at http://localhost:8000/)
......@@ -14,6 +20,5 @@ Start development server (at http://localhost:8000/)
```shell
yarn build
```
Make production build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment