Install dependencies and "build":
$ pnpm install
$ pnpm run build
Initialize 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.json
And upload to your server.
Now on the server:
- Unpack with
tar xzf secrets.tar.gz
. - Run
pnpm install --prod
to only install "production" dependencies. - Initialize sqlite database,
node dist/init-db.js
- Start with
node dist/server.js
(and your favorite daemon management tool.)