Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefine port and .env file #1

Open
bennyadr opened this issue Apr 15, 2022 · 1 comment
Open

undefine port and .env file #1

bennyadr opened this issue Apr 15, 2022 · 1 comment

Comments

@bennyadr
Copy link

hi,There....i try to run the script but found error..... at server : siad "running on undefined port , and when i look at the code, found like this : import 'dotenv/config';
import app from './app';

app.listen(process.env.PORT, () => {
console.log(Server up on port ${process.env.PORT}!);
}); at index.js

Can You please share the .env file ? ..... thanks a lot

@bennyadr
Copy link
Author

i mean $ babel-node src/index.js
Server up on port undefined!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant