# Running a development build

### Run server

Run with default settings:

    npm run server:start

Run with custom port:

    TRILIUM_PORT=8082 npm run server:start

### Run Electron

Rebuild `better-sqlite3` dependency:

    npm run electron:switch

Then run Electron:

    npm run electron:start

To run Electron using the same data directory as the production version:

    npm run electron:start-no-dir

When done, switch back the `better-sqlite3` dependency:

    npm run server:switch