Install dependencies and "build":
$ pnpm install
$ pnpm run buildInitialize sqlite database: node dist/init-db.js.
And then start the server with node dist/server.js.
The files required to deploy are: dist/*, public/*, package.json. Add these to a tar-archive:
$ tar czf secrets.tar.gz dist public package.jsonAnd upload to your server.
Now on the server:
- Unpack with
tar xzf secrets.tar.gz. - Run
pnpm install --prodto only install "production" dependencies. - Initialize sqlite database,
node dist/init-db.js - Start with
node dist/server.js(and your favorite daemon management tool.)