Yicheng Qin 32d23fdb11 chore: gofmt go files | 10 tahun lalu | |
---|---|---|
.. | ||
app | 10 tahun lalu | |
resources | 10 tahun lalu | |
.bowerrc | 10 tahun lalu | |
.gitignore | 10 tahun lalu | |
Gruntfile.js | 10 tahun lalu | |
LICENSE | 11 tahun lalu | |
README.md | 10 tahun lalu | |
bower.json | 10 tahun lalu | |
build | 11 tahun lalu | |
dashboard.go | 10 tahun lalu | |
karma.conf.js | 10 tahun lalu | |
package.json | 10 tahun lalu | |
setup | 10 tahun lalu |
If you'd like to contribute to the etcd dashboard mod, follow these instructions. For contributing to the rest of etcd, see the contributing document in the root of the repository.
Requires nodejs.
Run all commands from within the /mod/dashboard
directory.
run ./setup
to install npm modules and bower front-end dependencies.
To run a non-compiled development version of the dashboard:
Continually compile html templates, sass/css, and run unit tests.
grunt dev
Export an environment varible to notify etcd of the dashboard source code location:
export ETCD_DASHBOARD_DIR=./mod/dashboard/app
Run local etc as usual (be sure to include the cors flag).
// from etcd root dir
./bin/etcd -cors="*"
Alternatively, build the optimized production-build version of the website and run etcd as above:
grunt
export ETCD_DASHBOARD_DIR=./mod/dashboard/dist