From 6751d336e004c16aa933f4ccaed0500a776212e2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 20 Sep 2018 22:38:10 +0200 Subject: [PATCH] fix docker --- README.md | 6 ++++++ package.json | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36538a3..d8ce56f 100644 --- a/README.md +++ b/README.md @@ -103,10 +103,16 @@ If you want to know how, have a look at the respective component under [`src/com ## ✨ Development +You can simply use [Docker](https://www.docker.com) & [Docker Compose](https://docs.docker.com/compose/) or install and run dependencies on your local system. + ```bash git clone git@github.com:kremalicious/portfolio.git cd portfolio/ +# use Docker +docker-compose up + +# or go with local system npm i npm start ``` diff --git a/package.json b/package.json index df768da..4a1db71 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "license": "MIT", "author": "Matthias Kretschmann ", "scripts": { - "start": "npm run dev", + "start": "./node_modules/gatsby/dist/bin/gatsby.js develop", "lint:js": "eslint ./gatsby-*.js && eslint ./src/**/*.{js,jsx}", "lint:css": "stylelint ./src/**/*.{css,scss}", "lint": "npm run lint:js && npm run lint:css", "build": "./node_modules/gatsby/dist/bin/gatsby.js build", - "dev": "./node_modules/gatsby/dist/bin/gatsby.js develop", + "dev": "./node_modules/gatsby/dist/bin/gatsby.js develop --host 0.0.0.0", "format": "prettier --write 'src/**/*.{js,jsx}'", "format:css": "prettier-stylelint --write --quiet 'src/**/*.{css,scss}'", "test": "npm run lint && ./node_modules/.bin/ava **/*.test.js --verbose",