GithubHelp home page GithubHelp logo

Comments (4)

hb-chen avatar hb-chen commented on September 3, 2024

首次运行或者对前端有修改后需要先build

# build and run
make build run

具体运行可以参考Makefilemake 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.

hb-chen avatar hb-chen commented on September 3, 2024

如果只是对前端进行编译&打包可以这样
make vue statik

from starter-kit.

hesen2006cn avatar hesen2006cn commented on September 3, 2024

谢谢,知道为什么不会搞了,vue这个js 框架没用过。

from starter-kit.

hesen2006cn avatar hesen2006cn commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.