Skip to content

Commit

Permalink
Better use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
nicedexter committed May 5, 2020
1 parent 225add0 commit 0019e8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The website is based on

## Installation

You need [docker and docker-compose](https://www.docker.com/) in order to run this stack, and that's it.
You need [docker and docker-compose](https://www.docker.com/) in order to run this stack.

## Deploy

Expand All @@ -38,5 +38,10 @@ and insert:

## Develop

You need [Node.js](https://nodejs.org/en/) and [yarn](https://yarnpkg.com/) in order to run this stack.

- clone this repo
- `./develop.sh`
- `./develop.sh` will launch the Strapi CMS and Postgres
- in another terminal, `cd frontend`
- `yarn serve` will launch the frontend
- You will need to `yarn install` at first launch.
16 changes: 8 additions & 8 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: "3"

services:
devfrontend:
image: node
ports:
- 8080:8080
volumes:
- ./frontend:/usr/src/app
working_dir: /usr/src/app
command: bash -c "yarn install && yarn serve"
# devfrontend:
# image: node
# ports:
# - 8080:8080
# volumes:
# - ./frontend:/usr/src/app
# working_dir: /usr/src/app
# command: bash -c "yarn install && yarn serve"

devbackend:
image: strapi/strapi
Expand Down

0 comments on commit 0019e8d

Please sign in to comment.