Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 911 Bytes

Executables.md

File metadata and controls

47 lines (34 loc) · 911 Bytes

CADdrive executables

You can run CADdrive in two modes:

  • Development mode
  • Production mode

Development mode

Start the software in development mode as follows:

npm run migrations:run
npm run dev

Production mode

Start the software in production mode as follows:

npm run clean
npm run build

# Mail configuration

export SMTP_HOST=<host name or IP address>
export SMTP_PORT=<port number>
export SMTP_SECURE=<true|false>
export SMTP_AUTH_USER=<user name>
export SMTP_AUTH_PASS=<password>

# Database configuration

export TYPEORM_TYPE=<sqlite|postgres>
# ... for sqlite
export TYPEORM_DATABASE=<path to sqlite database file>
# ... for postgres
export TYPEORM_HOST=<host name or IP address>
export TYPEORM_PORT=<port number>
export TYPEORM_DATABASE=<database name>
export TYPEORM_USERNAME=<user name>
export TYPEORM_PASSWORD=<passwpord>

npm run migrations:run
npm start