forked from cerc-io/cosmos-explorer
add docker installation
This commit is contained in:
parent
004bde2b1a
commit
c722db1c4e
7
docker.sh
Executable file
7
docker.sh
Executable file
@ -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"
|
@ -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/* <ROOT_OF_WEB_SERVER>
|
||||
```
|
||||
|
||||
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`
|
||||
|
Loading…
Reference in New Issue
Block a user