Deployment failed in Azure
[issue link]I wrote the basic code by using express and nuxt, as followed :
./package.json:
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
},
./pages/index.vue:
<template>
<p>Hello world</p>
</template>
<script>
export default {
data: () => {
return { name: 'world' }
}
}
</script>
./server.js:
// Import and Set Nuxt.js options
let config = require('../nuxt.config.js')
config.dev = !(process.env.NODE_ENV === 'production')
// Init Nuxt.js
const nuxt = new Nuxt(config)
app.use(nuxt.render)
**!!! The development environment is working normally 。 However, the deployment environment cannot be started properly !!! **
Total 3 (delta 2), reused 0 (delta 0)
remote: Updating branch ‘master’.
remote: Updating submodules.
remote: Preparing deployment for commit id ‘38570f0049’.
remote: Generating deployment script.
remote: Running deployment command…
remote: Handling node.js deployment.
remote: KuduSync.NET from: ‘D:\home\site\repository’ to: 'D:\home\site\wwwroot’
remote: Copying file: 'package.json’
remote: Looking for app.js/server.js under site root.
remote: Using start-up script server.js
remote: Generated web.config.
remote: The package.json file does not specify node.js engine version constraints.
remote: The node.js application will run with the default node.js version 6.9.1.
remote: Selected npm version 3.10.8
remote: Invalid start-up command “nuxt start” in package.json. Please use the format "node