mirror of
https://github.com/NotAShelf/catApi.git
synced 2024-11-22 15:40:42 +00:00
I always comment my code, what makes you think otherwise
This commit is contained in:
parent
ea9413d021
commit
b17e172a5c
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -22,9 +22,9 @@ if(process.env.PORT) {
|
|||
logger2
|
||||
.success('Custom port is set. Using custom port ' + port)
|
||||
app.listen(port, () => {
|
||||
if(process.env.CUSTOMURL) {
|
||||
const customurl = process.env.CUSTOMURL;
|
||||
logger2
|
||||
if(process.env.CUSTOMURL) { // Check if customURL is defined .env
|
||||
const customurl = process.env.CUSTOMURL; // if it is, set customurl variable to the value in .env
|
||||
logger2 // alternative to console.lgg because looks better leave me alone
|
||||
.success('Custom URL defined as ' + customurl)
|
||||
.info('App listening at ' + 'https://' + customurl)
|
||||
.comment('Godspeed, little fella!')
|
||||
|
|
Loading…
Reference in a new issue