Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想了解下启动原理 #80

Closed
hakwolf opened this issue Aug 3, 2018 · 5 comments
Closed

想了解下启动原理 #80

hakwolf opened this issue Aug 3, 2018 · 5 comments

Comments

@hakwolf
Copy link

hakwolf commented Aug 3, 2018

一VUE的文件编译成exe后都打包到exe里了吗?库文件也在里面?exe发布到别的机器上还要另外安装vue的库吗?
二启动时go打开端口5920,这时是如何启动VUE,或者如何到VUE的首页,或者调用到安装页面的,我看BEEGO框架是以go后端打开前端的HTML的,这个VUE一般前后端分离的方式,是要用node.js命令npm run dev启动的 你这个启动不一样,所以我有兴趣了解下。
三这个可否加一个sqlite库的支持,我想如果我发布单独应用的话,就不要求别人装mysql或者别的数据 库了,如果用户用你这个那还要附带装下数据库。

@ouqiang
Copy link
Owner

ouqiang commented Aug 3, 2018

vue 已经编译打包成普通的js, html了, 这是由客户端渲染,不需要node

@hakwolf
Copy link
Author

hakwolf commented Aug 6, 2018

vue 已经编译打包成普通的js, html了 打包后的文件在哪里?我了解了下nmp run build是可以打包VUE生成普通的js, html,但是你这个好像没有看到编译打包后的js,CSS等文件。另外用goland编译后,这些js是自动编译进exe了吗,以资源形式还是啥形式装进exe的?还请赐教。

@ouqiang
Copy link
Owner

ouqiang commented Aug 6, 2018

打包后的静态文件写入到Go文件中了
https://github.com/ouqiang/gocron/blob/master/internal/statik/statik.go

@hakwolf
Copy link
Author

hakwolf commented Aug 8, 2018

windows下安装这个VUE项目的依赖库用的什么命令,打包用的什么命令?

@ouqiang
Copy link
Owner

ouqiang commented Aug 8, 2018

查看makefile

@ouqiang ouqiang closed this as completed Aug 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants