-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf6a77
commit 525b437
Showing
15 changed files
with
1,079 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
export cnpm="npm --registry=https://registry.npm.taobao.org \ | ||
--cache=$HOME/.npm/.cache/cnpm \ | ||
--disturl=https://npm.taobao.org/dist \ | ||
--userconfig=$HOME/.cnpmrc" | ||
|
||
export GOPATH=`pwd` | ||
export WORKDIR=$GOPATH/src/github.com/Tang-RoseChild/redis-admin | ||
export FRONT_DIR=$GOPATH/src/github.com/Tang-RoseChild/redis-admin/front | ||
|
||
go get github.com/Tang-RoseChild/redis-admin/backend | ||
if [[ $? != 0 ]]; then | ||
echo "go get github.com/Tang-RoseChild/redis-admin/backend failed" | ||
exit 1 | ||
fi | ||
|
||
cd $FRONT_DIR | ||
$cnpm install | ||
if [[ $? != 0 ]]; then | ||
echo "cnpm install failed..." | ||
echo "will use npm for installing,this will cost a lot of time...." | ||
npm install | ||
fi | ||
|
||
if [[ $? != 0 ]]; then | ||
echo "install failed, please fixed it, than re-run" | ||
exit 1 | ||
fi | ||
|
||
npm run build | ||
|
||
mv static ../static | ||
cd $WORKDIR | ||
|
||
$GOPATH/bin/backend | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charset=utf-8><title>redis</title><link href=/static/css/app.3efa06abbb352a4ccd58024c605f5c01.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.1f128e9a3d2d57488380.js></script><script type=text/javascript src=/static/js/vendor.50fdd451637ce6b61ebb.js></script><script type=text/javascript src=/static/js/app.1afdcc2729fd4cfa0ffe.js></script></body></html> |
57 changes: 57 additions & 0 deletions
57
static/static/css/app.3efa06abbb352a4ccd58024c605f5c01.css
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.