我想在Plesk上托管一个Shopware PWA应用程序。为此,我有以下index.js和server.js文件。
但是,我只能从Nuxt.JS获得标准页面,而不是商店。
index.js
require("@babel/register")({});
module.exports = require('./server.js');
server.js
const express = require('express');
const { Nuxt, Builder } = require('nuxt');
const config = require('./nuxt.config.js');
// Create new express app
const app = express();
// Listen to port 3000 or PORT env if provided
app.listen(process.env.PORT || 3000);
// Enable production mode
config.dev = false;
// Create instance of nuxt
const nuxt = new Nuxt(config);
// Add nuxt middleware
app.use(nuxt.render);
new Builder(nuxt).build();
我的Plesk配置:
发布于 2021-09-07 14:16:05
你是不是事先构建了应用程序?您是否尝试按照文档中的部署指南进行操作?https://shopware-pwa-docs.vuestorefront.io/landing/operations/deployment/#guides
我认为您目前并没有真正运行的节点服务器,因为您没有使用yarn start
启动应用程序
https://stackoverflow.com/questions/69088955
复制相似问题