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

搭建成功过程 #159

Open
qbmiller opened this issue Jun 14, 2022 · 1 comment
Open

搭建成功过程 #159

qbmiller opened this issue Jun 14, 2022 · 1 comment

Comments

@qbmiller
Copy link

qbmiller commented Jun 14, 2022

  1. 后端, 原来放上去时, 那个yaml也要放到同级目录

  2. 前端site, 根据导出目录部署死活不成功,各种: Cannot resolve "~/assets/styles/main.scss" from
    看网上 nuxt [需要放置到服务器上的代码只需要4个目录:.nuxt、static、nuxt.config.js、package.json] ,
    后来直接前端site 整体 rsync到服务器上, npm start了

  3. admin 配置,因为是同一个nginx 服务器下

module.exports = { lintOnSave: true, publicPath: "/admin/", // 增加 }; new Router({ base: 'admin', // 增加

image

@reggiepy
Copy link

reggiepy commented Nov 29, 2022

我是用的npm run generate 生成静态文件,不过只有一个机器生成成功了。另一个机器会包错。估计是框架问题。
image
找到问题所在了,执行 npm run generate 的时候需要在另外一个终端执行 npm run dev
不过这种方式不能记住登录状态,刷新就得重新登陆。
已经改用成,npm run build
npm run start

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