mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
69c8eecaf1
commit
3ba6d4ae53
7 changed files with 10 additions and 20 deletions
|
|
@ -35,12 +35,12 @@ const logger = tryRequire('morgan');
|
|||
|
||||
module.exports = async (options, config) => {
|
||||
const prefix = config('prefix');
|
||||
const port = process.env.PORT || /* c9 */
|
||||
config('port');
|
||||
const port = process.env.PORT /* c9 */
|
||||
|| config('port');
|
||||
|
||||
const ip = process.env.IP || /* c9 */
|
||||
config('ip') ||
|
||||
'0.0.0.0';
|
||||
const ip = process.env.IP /* c9 */
|
||||
|| config('ip')
|
||||
|| '0.0.0.0';
|
||||
|
||||
const app = express();
|
||||
const server = http.createServer(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue