Comments (4)
首次运行或者对前端有修改后需要先build
# build and run
make build run
具体运行可以参考Makefile,make build
编译会先build vue
,然后statik
的go generate
https://github.com/micro-in-cn/starter-kit/blob/4e43d1063dde50a2a95d4162f89925940597824d/app/console/web/Makefile#L5
https://github.com/micro-in-cn/starter-kit/blob/4e43d1063dde50a2a95d4162f89925940597824d/app/console/web/Makefile#L21
https://github.com/micro-in-cn/starter-kit/blob/4e43d1063dde50a2a95d4162f89925940597824d/app/console/web/Makefile#L25
from starter-kit.
如果只是对前端进行编译&打包可以这样
make vue statik
from starter-kit.
谢谢,知道为什么不会搞了,vue这个js 框架没用过。
from starter-kit.
node -v
v13.1.0
npm -v
6.12.1
make build run
之后出现下面的错误:
Images and other types of assets omitted.
DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
go get github.com/rakyll/statik
go: github.com/casbin/casbin/[email protected]: Get https://proxy.golang.org/github.com/casbin/casbin/v2/@v/v2.1.1.mod: dial tcp 172.217.27.145:443: i/o timeout
make: *** [statik] Error 1
from starter-kit.
Related Issues (20)
- helm init
- 找不到api.proto 文件 HOT 1
- go 1.13.4下启动gateway报找不到字段 HOT 2
- 无法正常 make build 网关 HOT 3
- 架构问题 HOT 1
- helm charts
- Error to span HOT 5
- DDD
- Web服务与API统一网关 HOT 2
- 关于web后台管理登陆后注销再重新登陆,网关会panic
- 代码小疑问
- 网关代理不成功 HOT 1
- 放弃Hipster Shop示例? HOT 1
- 如用postgresql 应怎样配置? HOT 1
- 请问下gateway 使用
- console/Makefile 判断一下吧,直接给我来了一个rm -rf /* HOT 4
- 想问下,你们跨service的事务是怎么处理的呢?
- codahale/hdrhistogram repo url has been transferred under the github HdrHstogram umbrella
- service name change
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-kit.