|
|
hace 2 años | |
|---|---|---|
| api | hace 2 años | |
| assets | hace 2 años | |
| components | hace 2 años | |
| layouts | hace 2 años | |
| map | hace 2 años | |
| middleware | hace 2 años | |
| pages | hace 2 años | |
| phpAPi | hace 2 años | |
| plugins | hace 2 años | |
| server | hace 2 años | |
| static | hace 2 años | |
| store | hace 2 años | |
| until | hace 2 años | |
| 宣传文案 | hace 2 años | |
| .editorconfig | hace 2 años | |
| .gitignore | hace 2 años | |
| README.md | hace 2 años | |
| nuxt.config.js | hace 2 años | |
| package-lock.json | hace 2 años | |
| package.json | hace 2 años | |
| tailwind.config.js | hace 2 años | |
| yarn.lock | hace 2 años |
项目基于
nuxt进行开发,使用yarn进行包管理
后端为php脚本接口,主要代码在phpApi中
nodejs版本 12+
php版本 5.3
yarn install
yarn dev
打包静态页面
yarn generate
将dist目录下的文件上传到服务器
配置nginx或者apache服务器
构建项目
yarn build
上传项目到服务器
服务器安装pm2与nodejs
启动项目
pm2 start npm --name "hfy" -- run start
php版本为5.3,请不要使用php7以上的版本server 配置项可以移除nuxt.config.js中配置generate.routes'