Closed vgsantoniazzi closed 1 year ago
@simov should we merge this?
Hi @vgsantoniazzi, configuring a port is no longer applicable in v2 of the admin. In v2 the admin is simply an Express.js middleware that you can mount in your server app:
var express = require('express')
var admin = require('express-admin')
express()
.use(admin({
config: require('config.json'),
settings: require('settings.json'),
users: require('users.json'),
custom: require('custom.json'),
}))
.listen(3000)
Also, the MySQL driver is no longer bundled with the admin in case you are using that. Have a look at the updated readme and also at the changelog for any potential breaking changes.
Currently, Heroku needs the port been set by environment variable.
There's any other option to express-admin work with $PORT from heroku?