dtwo-start-edge

2.17.1-28339286.2cc1655 • Public • Published

dtwo-start

Start Dtwo Application in production mode.

Installation

npm install --save dtwo-start

Add/Update your "start" script into your package.json:

{
	"scripts": {
		"start": "dtwo-start"
	}
}

Usage

dtwo-start <dir> -p <port number> -H <hostname> -c <config file>

Programmatic Usage

const { Dtwo } = require('dtwo-start')

// Require dtwo config
const config = require('./dtwo.config.js')

// Create a new dtwo instance (config needs dev: false)
const dtwo = new Dtwo(config)

// Start dtwo server
dtwo.listen(3000) // dtwo.listen(port, host)

// Or use `dtwo.render` as an express middleware

Package Sidebar

Install

npm i dtwo-start-edge

Weekly Downloads

13

Version

2.17.1-28339286.2cc1655

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • nkduy