diff --git a/docker.sh b/docker.sh new file mode 100755 index 00000000..8835b502 --- /dev/null +++ b/docker.sh @@ -0,0 +1,7 @@ +# chmod 755 docker.sh + +yarn --ignore-engines add +yarn --ignore-engines build +docker build -t "ping.pub/dashboard" . + +# then you can run "docker run -d -p 8080:80 ping.pub/dashboard" \ No newline at end of file diff --git a/installation.md b/installation.md index 4a040ff2..ee45fdeb 100644 --- a/installation.md +++ b/installation.md @@ -1,16 +1,26 @@ +# Prerequisite +1. Node, https://nodejs.org +2. Yarn, https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable + # Installation: 1. Running with yarn -``` -yarn && yarn serve +```sh +yarn --ignore-engines && yarn serve ``` 2. Building for web servers, like nginx, apache -``` -yarn && yarn build +```sh +yarn --ignore-engines && yarn build cp -r ./dist/* ``` +3. Running with docker +```sh +./docker.sh +docker run -d -p 8088:80 ping.pub/dashboard +``` + # Enable LCD for Ping.pub (do this on the config for your chain) 1. Set `enable = true` in `./config/app.toml`