From 0150029bc5948640556bdc46e9154f24319293fe Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 11 Nov 2018 15:42:22 +0200 Subject: [PATCH] fix typos in readme --- README.md | 5 ++--- web/webpack.config.js | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 42de3553..c41c60bc 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ _this is the recommended way to run remark42_ #### Without docker * download archive for [stable release](https://github.com/umputun/remark/releases) or [development version](https://remark42.com/downloads) -* unpack with `gunzip` (linux, mac os) or with `zip` (windows) +* unpack with `gunzip` (Linux, macOS) or with `zip` (Windows) * run as `remark42.{os}-{arch} server {parameters...}`, i.e. `remark42.linux-amd64 server --secret=12345 --url=http://127.0.0.1:8080` * alternatively compile from the sources - `make OS=[linux|darwin|windows] ARCH=[amd64,386,arm64,arm32]` @@ -390,7 +390,6 @@ Frontend docker compose config by default skips running backend related tests an In order to run backend locally (development mode, without docker) you have to have latest stable `go` toolchain [installed](https://golang.org/doc/install). - To run backend - `go run backend/app/main.go --dbg --secret=12345 --dev-passwd=password --site=remark --url=http://127.0.0.1:8080` It stars backend service with embedded bolt store on port `8080` with basic auth, allowing to authenticate and run requests directly, like this: `HTTP http://dev:password@127.0.0.1:8080/api/v1/find?site=remark&sort=-active&format=tree&url=http://127.0.0.1:8080` @@ -415,7 +414,7 @@ It used to reformat your frontend code using `prettier` and lint with `eslint` b For local development mode with Hot Reloading use `npm start` instead of `npm run build`. In this case `webpack` will serve files using `webpack-dev-server` on `localhost:9000`. -By visiting `127.0.0.1:9000/web` you will get a page with main comments widget. +By visiting `127.0.0.1:9000/web` you will get a page with main comments widget communicating with demo server backend running on `https://demo.remark42.com`. But you will not be able to login with any oauth providers due to security reasons. diff --git a/web/webpack.config.js b/web/webpack.config.js index 4e5d4828..2b7efeed 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -1,4 +1,5 @@ /* eslint-disable no-console */ + const path = require('path'); const webpack = require('webpack'); @@ -15,6 +16,7 @@ const publicFolder = path.resolve(__dirname, 'public'); const env = process.env.NODE_ENV || 'development'; const remarkUrl = process.env.REMARK_URL || 'https://demo.remark42.com'; const NODE_ID = 'remark42'; + // let's log some env variables because we can console.log(`NODE_ENV = ${env}`); console.log(`REMARK_ENV = ${remarkUrl}`);