Hi, I’m trying to generate a build for an app that needs a NodeJS server running in background, that server is build with NestJS
Have this as actual snapcraft.yaml
name: proto-device-server # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
server:
command: bin/src/server
daemon: simple
restart-condition: always
plugs:
home:
network:
network-bind:
parts:
server:
source: .
plugin: npm
npm-node-version: 16.14.0
The problem is that the daemon don’t start correctly, I suspect that the problem resides in the command of the application.
Normally the server it’s started with npm start
but it didn’t work because of the project structure it’s not copied correctly
Any ideas about that?
Thanks in advanced