Update dbPort ducumentation, set default port
This commit is contained in:
parent
43f8b6017a
commit
d29f379ff6
|
@ -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({
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue