Update dbPort ducumentation, set default port

This commit is contained in:
ivan 2018-04-26 17:42:59 -03:00
parent 43f8b6017a
commit d29f379ff6
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import React from 'react';
import _ from 'lodash';
import history from 'lib-app/history';
import i18n from 'lib-app/i18n';
@ -64,7 +65,7 @@ class InstallStep3Database extends React.Component {
}, () => {
API.call({
path: '/system/init-database',
data: form
data: _.extend({}, form, {dbPort: form.dbPort || 3306})
})
.then(() => history.push('/install/step-4'))
.catch(({message}) => this.setState({

View File

@ -14,7 +14,8 @@ use RedBeanPHP\Facade as RedBean;
*
* @apiPermission any
*
* @apiParam {String} dbHost Url of the database server.
* @apiParam {String} dbHost Location of the database server.
* @apiParam {String} dbPort Port of the database server.
* @apiParam {String} dbName Name of the database. If not given, the system will try to create one.
* @apiParam {String} dbUser User of the database server.
* @apiParam {String} dbPassword Password of the database server.