Closed michaellperry closed 6 years ago
Could you try change the start
script in package.json
to node dist/server.js
. This will require you have run it once locally.
Not the most elegant solution, will reply again if I think of something better.
@michaellperry Is your problem solved?
I met the same issue. remote: Invalid start-up command "npm run build && node app.js" in package.json. Please use the format "node <script relative path>".
https://github.com/projectkudu/kudu/issues/2756
@GavinPacini I have to npm run build
first to transpile the code then node app.js
.
It's too weak if azure only supports node <script>
.
I solved the problem by changing the build to use Gulp. It has diverged quite a bit from this template.
When I try to deploy this starter on Azure Web Apps, I get the following error on deployment:
What's the best way to do this?