After running command:

```
yarn install
yarn build:prod
```
on my OS X 10.14, the *dist* directory looks like:

*$ ls -l dist*
*total 40*
*drwxr-xr-x  15 w0ng.unic0rn  wheel   480 11 15 17:11 css*
*-rw-r--r--   1 w0ng.unic0rn  wheel  9662 11 15 17:11 favicon.ico*
*drwxr-xr-x   4 w0ng.unic0rn  wheel   128 11 15 17:11 fonts*
*drwxr-xr-x   3 w0ng.unic0rn  wheel    96 11 15 17:11 img*
*-rw-r--r--   1 w0ng.unic0rn  wheel  2975 11 15 17:11 index.html*
*drwxr-xr-x  18 w0ng.unic0rn  wheel   576 11 15 17:11 js*
*-rw-r--r--   1 w0ng.unic0rn  wheel    24 11 15 17:11 robots.txt*


So, the next step is ?
```
mkdir -pv /usr/local/apisix/dashboard/
cp -r dist/* /usr/local/apisix/dashboard/
```

----

BTW, do the files under dist/* have OS platform dependencies? I will not
add yarn, nodejs and misc in my openresty docker.


Zhiyuan Ju <juzhiy...@apache.org> 于2019年11月14日周四 下午3:12写道:

> You should build the Dashboard by yourself, and you may follow the steps:
>
> ```sh
> # Make sure Yarn is installed on your machine -->
> https://yarnpkg.com/en/docs/install
>
> $ git clone https://github.com/apache/incubator-apisix-dashboard
> $ yarn
> $ yarn build:prod
>
> # Built files are under /dist folder.
> ```
>
> Best Regards!
> @ Zhiyuan Ju <https://www.shaoyaoju.org/>
>
>
> Lang Wang <totemofw...@apache.org> 于2019年11月14日周四 下午2:51写道:
>
> >    - Install APISIX via:
> >
> > *luarocks install
> >
> >
> https://github.com/iresty/apisix/raw/master/rockspec/apisix-${APISIX_VERSION}-0.rockspec
> > <
> >
> https://github.com/iresty/apisix/raw/master/rockspec/apisix-${APISIX_VERSION}-0.rockspec
> > >
> > --tree=/usr/local/apisix/deps*
> >
> >
> >    - The /usr/local/apisix/ directory looks like:
> >
> > *bash-4.4# ls -l /usr/local/apisix/*
> > *total 0*
> > *drwxr-xr-x 3 root root 55 Nov 14 14:47 conf*
> > *drwxr-xr-x 5 root root 41 Nov 14 14:47 deps*
> > *drwxr-xr-x 2 root root  6 Nov 14 14:47 logs*
> >
> >
> >    - So, is this the best practice to use dashboard via 🤔: (for current
> >    master branch)
> >
> >
> > *git clone --depth=50 https://github.com/apache/incubator-apisix.git
> > <https://github.com/apache/incubator-apisix.git>
> apache/incubator-apisix*
> > *cd apache/incubator-apisix/*
> > *git submodule update --init --recursive*
> > *cp -ar dashboard /usr/local/apisix*
> >
>

Reply via email to